Reputation: 83
I'm using this command to remove all duplicate lines:
sort file.txt | uniq -u
But it just displays all the unique lines in terminal. What do I need to change to make it create a new file named newfile.txt that all the unique lines are in?
Upvotes: 1
Views: 491