count lines of file do not count duplicate lines 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