Sort/Uniq

From wiki
Revision as of 17:27, 31 May 2019 by Hdridder (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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