1754998 Members
2873 Online
108828 Solutions
New Discussion юеВ

Re: A script

 
Dennis Handly
Acclaimed Contributor

Re: A script

>Steven: ... | sort | uniq

You can optimize this by using "sort -u".
Raj D.
Honored Contributor

Re: A script

Mel, thanks good thing leaned abt uniq,
, uniq only senses consecutive lines which were duplicates. sometime I used to wonder why uniq not working properly, now it make sense, t u.


" If u think u can , If u think u cannot , - You are always Right . "
Arturo Galbiati
Esteemed Contributor

Re: A script

cat file | tr ',' '\n'|sort -u
HTH,
Art
Raj D.
Honored Contributor

Re: A script

# cat file|tr "," "\n" | awk '!x[$0]++' #Enjoy!.
" If u think u can , If u think u cannot , - You are always Right . "