Search
Calendar
July 2020
S M T W T F S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031  
Your widget title
Archives

PostHeaderIcon Remove duplicated lines from a file

Abstract: you have to remove duplicate lines in one file. For instance, you have a file:

foo1
foo2
foo2

Solution: use this command:

uniq myFile.txt

You’ll get:

foo1
foo2
uniq myFile.txt

Leave a Reply