count duplicate lines in file as 1 in unix 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