How do I columnate any uncollumnated input like
ls is creating an optimized table with minimum width for each row, for example:
ls 2 dsao file with space with 5 e g wsdl-rubo-6cb0f1a9086e80c d file leading space
but if I feed output into
column (for ex. each file on one line), it pads every row the same width, so it fits the screen width:
for i in *; do echo "$i"; done | column 2 file with space 5 g d leading space dsao with e wsdl-rubo-6cb0f1a9086e80c file
(I use only the file list here to generate the same output as example, I am looking for such a solution to columnize other things in the end.)
How can I colunnize any output with a variable col-width?