//View Tip #89
Similar Tips
» Randomize lines in a file
» See your favorite commands
» List non-system users
» Top ten running processes
» Sort the lines of a file by length


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
sort a file by the first column in dictionary order, then by the second column numerically.

sort +0d -1 +1n -2 file.txt

View Comments »


Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit