Remove duplicate lines from a text file

code

  $ sort filename | uniq
  

output

$cat filename
hello hello hey hello goodd $ sort filenam | uniq hello hey goodd

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post