Column overruns in bash

view story

http://www.unix.com – So say you have something like: Code: col1        col2        col3 .          .          . .          .          . Say using bash you want the columns to always have exactly the same width (including spaces). If there are text overruns, the overruns carry over to the next line. I'm using something like: Code: printf "%s\t%-59s(%s)\n", col1, col2, col3 It so happens col1 text is always the same length. col2 varies big time, but I (HowTos)