Created
December 5, 2016 23:40
-
-
Save toadkicker/7877ea8194ad7fd6a79a2bfe5b3cc214 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(head -n 2 <file> && tail -n +3 <file> | sort) > newfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit http://stackoverflow.com/questions/14562423/is-there-a-way-to-ignore-header-lines-in-a-unix-sort#14562674