Deleting the useless use of cat, and using a far-underused sort flag, I'd type that as:cat file.txt|sort|uniq
sort -u file.txt
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: a way to do 'sort|uniq'
by merlyn
in thread a way to do 'sort|uniq'
by jch341277
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |