how to print a man page
Charles.S.Libby at motorola.com
Fri Nov 28 21:13:38 PST 2003
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.
From: owner-freebsd-questions at freebsd.org [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Malcolm Kay
Sent: Friday, November 28, 2003 11:09 PM
To: Antoine Jacoutot; Ian Todd
Cc: freebsd-questions at 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
freebsd-questions at freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions