Skip to content

Instantly share code, notes, and snippets.

@Gabriel-p
Created November 19, 2014 17:29
Show Gist options
  • Save Gabriel-p/4807ba0a58af26b003fa to your computer and use it in GitHub Desktop.
Save Gabriel-p/4807ba0a58af26b003fa to your computer and use it in GitHub Desktop.
Align columns in a text file
# 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