count duplicate lines in file linux code example
Example: bash count duplicate lines in a file
# Basic syntax:
sort input_file | uniq -c
# Sort the file first because uniq requires a sorted file to work
# Basic syntax:
sort input_file | uniq -c
# Sort the file first because uniq requires a sorted file to work