11 May

Sort contents of a file and remove repeated lines


sort file.txt | uniq


## One thought on “Sort and Unique”

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