bug-coreutils
[Top][All Lists]
Advanced

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

cols command for columnar output


From: Stephen Jungels
Subject: cols command for columnar output
Date: Mon, 1 Aug 2005 16:46:57 -0400

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

I later discovered the BSD column command, which is similar, but GNU doesn't
seem to have anything like it (or does it?).  My source is GPL licensed and
coreutils seems to be the logical place for it because it is a basic text
formatting command.  I am offering to contribute it.

Thoughts?


--Stephen

Attachment: cols.tar
Description: Macintosh archive


reply via email to

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