Skip to content

Instantly share code, notes, and snippets.

@proxium
Created September 2, 2015 18:04
Show Gist options
  • Save proxium/6daace60a6b8bf86546e to your computer and use it in GitHub Desktop.
Save proxium/6daace60a6b8bf86546e to your computer and use it in GitHub Desktop.
# Use those commands to check for duplicate lines in <file>
# The more verbose --count flag with the GNU version:
sort <file> | uniq -c
# The more verbose --count flag with the GNU version:
sort <file> | uniq --count
# Show only print duplicate lines
sort <file> | uniq -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment