I've made an implementation of recursive output of ls and columns.
ls -C is stated in the POSIX standard so I've tried to implement it
sucklessly (as opposed to using the cols command).
It dynamically resizes based on the contents of each column, which
differs from ls | cols output.
ls -q replaces non printable characters with '?'; I'm not sure how to
make files with non-printable characters as yet, all I know is this
code path works with input that does not have non-printable
characters.
Let me know how this works for you.
Cheers,
Ralph
--
Tai Chi Minh Ralph Eastwood
tcmreastwood_AT_gmail.com
Received on Sun Feb 15 2015 - 13:56:05 CET