sort
sort will sort the file contents concatenates to the standard output and uniq will filter the adjacent matching lines, -d option of uniq will print the duplicate lines.
sort
sort will sort the file contents concatenates to the standard output and uniq will filter the adjacent matching lines, -d option of uniq will print the duplicate lines.