How to line up columns using paste(1)? or how to make an aligned table merging lines in the shell?
- by nn
Hi,
I want to merge lines such that the merged lines are aligned on the same boundary.
UNIX paste(1) does this nicely when lines all meet at the same tab boundary, but when lines
differ in size (in the file that lines are being merged into), the text comes out awkward.
Example of paste(1) that has the desired effect:
$ echo -e "a\nb\nccc\nd" |…