Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2003 23:13:30 -0600
From:      Libby Charles-CCL044 <Charles.S.Libby@motorola.com>
To:        "'Malcolm Kay'" <malcolm.kay@internode.on.net>, Antoine Jacoutot <ajacoutot@lphp.org>, Ian Todd <isa@mailbox.co.za>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: how to print a man page
Message-ID:  <370596D46C9BD711B61A00065BF365888A179D@il06exm12>

next in thread | raw e-mail | index | archive | help
You could just pipe the output of man directly to lpr:

	man manpage |lpr

This produces a great output which I use in my classes all the time.

Now if you need it to be put into another document for a class for example, you can just

	man manpage > filename

And the output is formated in text.


-----Original Message-----
From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Malcolm Kay
Sent: Friday, November 28, 2003 11:09 PM
To: Antoine Jacoutot; Ian Todd
Cc: freebsd-questions@freebsd.org
Subject: Re: how to print a man page


On Sat, 29 Nov 2003 05:48, Antoine Jacoutot wrote:
> On Friday 28 November 2003 20:10, Ian Todd wrote:
> > I have installed a local printer on /dev/lp0. I want to print a man 
> > page how do i do that? Will it also fit onto the page? i dont need 
> > to setup the size of my page?Thanks.
>
> $ groff -Tps -man /path/to/man/page/man.1 | lpr -P PS-Printer
>

This is making hard work of it. You need to first find the path to the 
man page; but man itself is capable of preparing a PS output:

$ man -t manpage | lpr -P PS-Printer

Malcolm Kay
_______________________________________________
freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?370596D46C9BD711B61A00065BF365888A179D>