Skip to content

Instantly share code, notes, and snippets.

@jappy
Created March 11, 2012 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jappy/2015435 to your computer and use it in GitHub Desktop.
Save jappy/2015435 to your computer and use it in GitHub Desktop.
unix sort cheatsheet
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