Created
February 5, 2016 16:13
-
-
Save jcmartins/9e71c895d99090fb40cf to your computer and use it in GitHub Desktop.
Work with Duplicate lines inside a text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '!seen[$0]++' filename | |
or | |
sort -u -o filename1.txt filename2.txt | |
write dup files into text file | |
sort file1.txt file2.txt | uniq -d > duplicity.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment