Re: printing from command line

Richard B. Johnson (root@chaos.analogic.com)
Fri, 22 Mar 2002 16:26:08 -0500 (EST)


On Fri, 22 Mar 2002, walt wrote:

> This is a general linux question, not really a kernel question. Does
> anyone know if there is a "simple" good way to print code from linux at
> the command promt. On a Solaris machine,
> /usr/openwin/bin/mp -o -l filename
> gives me a page with 2 columuns, user_name, date, and pagenumber at the
> top of each column, and the filename at the bottom of each column. I've
> read lots of howtos and man pages, even wrote a perl script to wrap the
> lines for me, but I haven't figured out how to get the same format from
> Linux as I do from Solaris.
>
> Thanks!

I think you want `pr` although some formatting isn't automatic. `man pr`
shows it takes more parameters than `ls`. Fortunately, you can make
an alias.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

Windows-2000/Professional isn't.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/