Difference between revisions of "Sort/Uniq"

From wiki
Jump to navigation Jump to search
(Created page with "Category:Linux/Unix ;sort <filename> ;cat <filename>|sort :Print the content of <filename> sorted. ;sort -u :Sort and print all unique values ;uniq -d :Print all values...")
(No difference)

Revision as of 17:27, 31 May 2019


sort <filename>
cat <filename>|sort
Print the content of <filename> sorted.
sort -u
Sort and print all unique values
uniq -d
Print all values that exist more than once
uniq -D
Print all lines with duplicate values