How can I transform tabular data into equal-width columns?
I want to print an 'echo' command output which has fields that is separated by '|' into columns with a fixed same width for all column. Number of columns may vary hence, the width should be a global setting applicable for all columns. Sample input 1234|sdan:active:running|sdax:active:running|sdbh:active:running|sdcv:active:running|sddf:active:running|sddp:active:running|Total paths 6 : OK 1235|sdc:active:running|sdm:active:running|sdw:active:running|sdbk:active:running|sdbu:active:running|sdce:active:running|Total paths 6 : OK 1236|sdam:active:running|sdaw:active:running|sdbg:active:running|sd
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.