Removing Duplicate Lines

Removing Duplicate Lines With Sort, Uniq and Shell Pipes
Use the following syntax:
# sort {file-name} uniq -u
# sort ftest.txt uniq -u
Where,-u : check for strict ordering, remove all duplicate lines