I have a delimeted file which I want to print in a table like format. The command below is close however tab is not always big enough to properly space the columns?
Hi RudiC, that kind of works, but not really. Some columns are very short fileds i.e 1 or 2 chars, and some column are 20-25 chars wide.
If I increase -15 -> -30, the file goes over multiple lines and is unreadable.
Howerver if I keep it at -15, some columns are not seperated by anything.
Really what I need is to loop through each column of data and find the maximum width. I thought about cuting each colum and then pasting back together?
delugeag's "column" proposal does exactly what you require. I was aiming for columns of equal, constant width, and his proposal adapts to the respective neccessary width.