oplaTech About Teaching Archive
Oplatek's external memory

Pretty printing columns in Bash

Nice and simple:

$ ls -al | awk '{print $9" "$1" " $3}' | column -t
The command produces following output

...
...

...

.winpdb_settings.cfg Nov 7 -rw-r--r--
work Jan 10 lrwxr-xr-x
WWW May 3 lrwxr-xr-x
.Xauthority Apr 11 -rw-------
.xdvirc Jul 25 lrwxr-xr-x
.xine Aug 25 lrwxr-xr-x
.xscreensaver-getimage.cache Feb 10 lrwxr-xr-x

...
...