uniq
Report or omit repeated lines.
$ uniq
Examples
# Remove duplicates uniq file.txt # Count occurrences uniq -c file.txt # Show only duplicates uniq -d file.txt # Case-insensitive uniq -i file.txt # Skip first field uniq -f1 file.txt
Report or omit repeated lines.
Examples
# Remove duplicates uniq file.txt # Count occurrences uniq -c file.txt # Show only duplicates uniq -d file.txt # Case-insensitive uniq -i file.txt # Skip first field uniq -f1 file.txt