Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!news.PBI.net!news.mathworks.com!howland.erols.net!vixen.cso.uiuc.edu!news.indiana.edu!news From: jfieber@indiana.edu (John Fieber) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to format man pages to lpr --- reasonably? Date: 16 Oct 1996 04:34:22 GMT Organization: Indiana University, Bloomington Lines: 33 Sender: jfieber@fallout.campusview.indiana.edu Message-ID: <541oke$ifg@dismay.ucs.indiana.edu> References: <53m1qp$3vq@taco.cc.ncsu.edu> <5417s5$t49@cnn.exu.ericsson.se> NNTP-Posting-Host: fallout.campusview.indiana.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 In article <5417s5$t49@cnn.exu.ericsson.se>, exujbm@exu.ericsson.se (Ben Madison) writes: > Bob Keys (rdkeys@unity.ncsu.edu) wrote: >> >> man <manpage> | a2ps -1 -a -i -m -p | lpr was better but still had bad >> >> fits with the backspace and underscores from the man pgm. I can't seem to >> find any more options that should properly pass manpages through a2ps. I >> would have thought that the -i and -m options would have taken care of that. >> Perhaps an intermediate filter of some sort is required? > > I use a little perl filter, "unman": > > #!/usr/local/bin/perl -n > s/_[\b]//g; > print; > > Then just do: > > man <manpage> | unman | a2ps <whatever> | lpr Ack! Five follups in this thread an apparently not one person bothered to read the man man page! If you have a postscript printer (or ghostscript driving somthing else) all you have to do is: man -t <manpage> | lpr -john == jfieber@indiana.edu =========================================== == http://fallout.campusview.indiana.edu/~jfieber ================