Display Only Unique Lines From a File
· Shell & text · Files & disks
There are many situations in which you may only want to display unique lines. Here is an easy way of doing it.
#uniq filename
e.g. #uniq filename > outputfile (All of the duplicate lines are filtered out. outputfile only has unique lines in it.)