Stephen Jungels wrote:
Because I needed nice columnar output similar to the ls command's simple
file list, I went in and ripped out the columnar logic from GNU ls and
created a nice simple "cols" command. It does one thing only and does it
well, like a good UNIX command should.
(pr isn't good enough because it requires you to guess how many columns will
fit across the screen, and it truncates long strings. cols makes each
column just wide enough for its longest string and fits as many columns as
possible across the screen.)
Why not fix pr if it doesn't do as required?
Anyway...
pr -T -W$COLUMNS
Add -J to control truncation/wrapping
--
Pádraig Brady - http://www.pixelbeat.org
--
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils