Last active
August 29, 2015 14:05
-
-
Save francisco-perez-sorrosal/f8a35f68ad0f5738b4de to your computer and use it in GitHub Desktop.
Command to sort and pretty print a column-based text file in UNIX
This file contains 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 -nr -t$'\t' -k<column> <file> | column -ts $'\t' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment