bash how to keep one instance of duplicate lines code example
Example: bash how to keep one instance of duplicate lines
# Basic syntax:
sort input_file | uniq
# Sort the file first because uniq requires a sorted file to work. Uniq
# then eliminates all duplicated lines in the file, keeping one instance
# of each duplicated line