sort Examples
[Overview]

sort Examples

sort - sort lines of text files 

sort [OPTION]... [FILE]...

-b: ignore leading blanks 
-f: fold lower case to upper case characters 
-n: compare according to string numerical value 
-R: sort by random hash of keys 
-r: reverse the result of comparisons 
-c: check for sorted input; do not sort 
-k: start a key at POS1 (origin 1), end it at POS2 (default end of line) 
-o: write result to FILE instead of standard output 
-t: use SEP instead of non-blank to blank transition 

for further information see the manual pages sort(1)


examples assembled by andreas schmidt for the DBKDA 2021 conference