Re: Bash --- columns problem ??

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

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux