Search
Calendar
July 2025
S M T W T F S
« Jun    
 12345
6789101112
13141516171819
20212223242526
2728293031  
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