Created
March 11, 2012 07:32
-
-
Save jappy/2015435 to your computer and use it in GitHub Desktop.
unix sort cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sort –d #dictionary order | |
sort –f #fold case | |
sort –n #numeric order | |
sort –nr #reverse numeric order | |
sort +1 #start with field 1 (starting from 0) | |
sort +0.50 #start with 50th character | |
sort +1.5 #start with 5th character of field |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment