\s-1gnu\s0 shtool pretty-print a field-separated list
shtool table [-F|--field-sep sep] [-w|--width width] [-c|--columns cols] [-s|--strip strip] strsepstr...
This pretty-prints a list of strings as a table.
The following command line options are available.
Separate columns using sep. Default is \*(C`:\*(C'.
Width of each column. Default is 15 characters.
Number of columns. Default is 3.
Strip off any characters past strip. Default is 79.
# shell script shtool table -F , -w 5 -c 4 "1,2,3,4,5,6,7,8,9,10,11,12"
The \s-1GNU\s0 shtool table command was originally written by Ralf S. Engelschall <[email protected]> in 1999 for \s-1GNU\s0 shtool.
shtool\|(1), tr\|(1), fmt\|(1), sh\|(1), awk\|(1), sed\|(1).