Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created May 10, 2011 21:29
Show Gist options
  • Save dpritchett/965416 to your computer and use it in GitHub Desktop.
Save dpritchett/965416 to your computer and use it in GitHub Desktop.
Sort each row in this wordcounts text file by second field descending
# sort -rk 2 gets reverse sort order, key = 2nd field
cat ./output/* | sort -rk 2 | more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment