
uniq
List of commands for uniq:
-
uniq:tldr:21d52 uniq: Display number of occurrences of each line, sorted by the most frequent.$ sort ${filename} | uniq -c | sort -nrtry on your machineexplain this command
-
uniq:tldr:90d6c uniq: Display only duplicate lines.$ sort ${filename} | uniq -dtry on your machineexplain this command
-
uniq:tldr:99184 uniq: Display only unique lines.$ sort ${filename} | uniq -utry on your machineexplain this command
-
uniq:tldr:e90e6 uniq: Display each line once.$ sort ${filename} | uniqtry on your machineexplain this command
-
uniq:tldr:f0c2a uniq: Display number of occurrences of each line along with that line.$ sort ${filename} | uniq -ctry on your machineexplain this command