Jeffry Smith wrote:
> 
> Bayard Coolidge USG ZKO3-3/S20 wrote:
> >
> > Generally (and users of other Unices can comment), the 'man'
> > command actually reads in the raw man page info, (which, in
> > the old days was written in nroff format), and processes it
> > and spits out the stuff you see in your xterm window. Note
> > that in a lot of cases, this may include ANSI characters
> > that will do bolding and underlining.
> >
> > To print this, you probably (and I wish I had a Linux box
> > here to test it on to be sure) could do something like:
> >
> > man df | lpr
> >
> > to print the 'df' man page. In some cases, it may be necessary
> > to use even more commands, as I had to do under ULTRIX 10 years ago:
> >
> > man df | col -b | lpr
> >
> > I haven't looked at the man page sources in Linux hard enough
> > to figure out if they use some special nroff macros or not, which
> > could make life a bit more amusing.
> >
> > Bayard
> >
> Alas, I tried the man df | lpr and got junk on a Laserjet (printed a
> bunch of characters on the right hand side of the page)


To actually print to my Laserjets or Deskjets ("standard" RH6 printool
setup), I use:

man -t <name> | lpr

The printouts have all the formatting, paging, bolding you'd expect...

geoff

******************************************************************
Geoff Allsup     [EMAIL PROTECTED]      Upper Ocean Processes Group
Woods Hole Oceanographic Institution   Woods Hole, MA, USA
******************************************************************

**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to