Created
November 19, 2014 17:29
-
-
Save Gabriel-p/4807ba0a58af26b003fa to your computer and use it in GitHub Desktop.
Align columns in a text file
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
# See: | |
# http://stackoverflow.com/questions/14095011/using-awk-to-align-columns-in-text-file | |
# for more info. | |
head -1 file.dat; tail -n+2 file.dat | rev | column -t | rev > out.dat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment