Is there a simple utility or script to columnate the output from one of my scripts? I have data in some form:
A aldkhasdfljhaf
B klajsdfhalsdfh
C salkjsdjkladdag
D lseuiorlhisnflkc
E sdjklfhnslkdfhn
F kjhnakjshddnaskjdh
but if this becomes two long, write the data in the following form (where still vertically ordered):
A aldkhasdfljhaf D lseuiorlhisnflkc
B klajsdfhalsdfh E sdjklfhnslkdfhn
C salkjsdjkladdag F kjhnakjshddnaskjdh
From reading the manpage, I don't think that this is something column would be appropriate for but I'm not sure. It's easy enough to split in the form:
A B
C D
E F
by only printing \n every second line (what my current script does). Any ideas? Thanks!
tree -L 2 -F | column | less -Nwhich list dir & files up to 2 levels, with multiple columns.