Eliminating duplicate lines

Jim Herrmann kclug at itdepends.com
Thu Dec 22 22:35:46 CST 2005


This worked great.  Thanks! 
The uniq command actually accepts an input and output file.  No pipe needed.

Arthur Pemberton wrote:

> I think the command is `uniq`. You just pipe your text to it.
> Man page: http://www.computerhope.com/unix/uuniq.htm

Thanks to Ron also.  This may be easier to remember since it uses more 
common commands.

Geoffrion, Ron P [IT] wrote:

> cat filelist.txt | sort -u > filelist.unique




More information about the Kclug mailing list