Posts Tagged With: uniq

Find Duplicate Lines

Tagged with: , , , , ,

Sort contents of two files by viewing only duplicate line


sort file1 file2 | uniq -d
1 Comment »

Sort and Unique

Tagged with: , , , , , ,

Sort contents of a file and remove repeated lines


sort file.txt | uniq
1 Comment »