Sort and Unique

Tagged with: , , , , , ,

Sort contents of a file and remove repeated lines


sort file.txt | uniq

One Response to “Sort and Unique

  • 1
    Binny V A
    May 11th, 2008 23:29

    You can specify multiple files if needed – just add it to the end of the sort command – sort file1 file2|uniq

Leave a Reply