commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There are 8 alternatives - vote for the best!
-n switch keeps empty columns
If your distribution does not ship with a recent column version that supports -n you can use this alternative:
perl -pe 's/(^|;);/$1 ;/g' file.csv | column -ts\; | less -S
Change the delimiter to your liking.
This version now adds a header with consecutive numbering.
If you can do better, submit your command here.
You must be signed in to comment.