bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cols command for columnar output


From: P
Subject: Re: cols command for columnar output
Date: Mon, 08 Aug 2005 12:15:54 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124

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
--




reply via email to

[Prev in Thread] Current Thread [Next in Thread]