Last active
December 19, 2015 01:09
-
-
Save syenchuk/5874077 to your computer and use it in GitHub Desktop.
Reverse the order of lines in a file using coreutils and moreutils
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
| tac somefile | sponge somefile |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tac from coreutils: http://www.gnu.org/software/coreutils/manual/coreutils.html#tac-invocation
sponge from moreutils: http://joeyh.name/code/moreutils/