Bash --- columns problem ??

Robert P. J. Day rpjday at crashcourse.ca
Sat Dec 15 14:56:53 UTC 2007


On Sat, 15 Dec 2007, G.Wolfe Woodbury wrote:

> On Sat, Dec 15, 2007 at 05:52:25AM -0500, William Case wrote:
> > Hi;
> >
> > I am having a bit of a brain cramp.
> >
> > I have a text file with 1100 one word lines in it.  I would like to
> > transpose that file into a three column text file reducing it from 23
> > pages to 8 pages before printing.  I did something similar from the
> > command line over a year ago, but for the life of me I can't remember
> > how.  I do remember that it was simple at the time.
> >
> > I have tried every possible combination I can think of with grep |
> > column.
> >
> > If this problem is familiar to someone could they just point me; tickle
> > my memory?
>
> There are some options to the pr(1) command that will multi-column on the way to
> printing.

$ pr --columns=3 -t <file>

i think.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================




More information about the fedora-list mailing list