Extract IDs from CSS

Posted by nosuchip on Stack Overflow See other posts from Stack Overflow or by nosuchip
Published on 2010-06-02T14:13:27Z Indexed on 2010/06/02 14:13 UTC
Read the original article Hit count: 119

Filed under:
|

I've the CSS file with many entry like

id1, #id2, #id3, #id4 { ... }

id3, #id2 { ... }

id2, #id4 { ... }

I want to extract list of unique IDs using command line tools (msys). Unique means any entry in list presented only once. How?

PS: I know how doing it using python, but what about awk/sed/cat?

© Stack Overflow or respective owner

Related posts about shell

Related posts about sed