Sort contents of a file and remove repeated lines
sort file.txt | uniq
You can specify multiple files if needed – just add it to the end of the sort command – sort file1 file2|uniq
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.