Skip to content

Instantly share code, notes, and snippets.

@heluvaguy
Created February 27, 2017 14:00
Show Gist options
  • Save heluvaguy/95524821b7b604ca7b9719780ce5a456 to your computer and use it in GitHub Desktop.
Save heluvaguy/95524821b7b604ca7b9719780ce5a456 to your computer and use it in GitHub Desktop.
Sort csv based on a field
sort -t, -nr -k5 file.csv
# sorts in reverse based on the fifth column.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment