Find Duplicate Lines
Sort contents of two files by viewing only duplicate line
sort file1 file2 | uniq -d
Sort contents of two files by viewing only duplicate line
sort file1 file2 | uniq -d
Sort contents of a file and remove repeated lines
sort file.txt | uniq