Looking for a column formatting script, I have a feeling this could be a one line awk. Ideally, a small shell script is all I am after.
The data is tab separated, each cell in each row is of variable length, and of course, may have spaces in it.
So we have something like this
dasj dhsahdwe dhasdhajks ewqhehwq dsajkdhas e dward das dsaw das daswf fjdk ewf jken dsajkw dskdw hklt ewq vn1 daskcn daskw
Should end up something like this:
dasj dhsahdwe dhasdhajks ewqhehwq dsajkdhas e dward das dsaw das daswf fjdk ewf jken dsajkw dskdw hklt ewq vn1 daskcn daskw
Ideally, being able to adjust the amount of hard spaced between each one. Even better if it looks on a column by column basis, so leading short cells do not all get the same right padding.
Not ideal:
1 dhsahdwe dhasdhajks ewqhehwq dsajkdhas 2 das dsaw das daswf 3 ewf jken dsajkw dskdw 4 ewq vn1 daskcn daskw
Ideal:
1 dhsahdwe dhasdhajks ewqhehwq dsajkdhas 2 das dsaw das daswf 3 ewf jken dsajkw dskdw 4 ewq vn1 daskcn daskw