I am wanting to print a man page, but if I do something like:
man ps | lpr
then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
t_h_i_s
How can I filter the output of man so that it looks "normal" when
printed?
I am wanting to print a man page, but if I do something like:
man ps | lpr
then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
t_h_i_s
How can I filter the output of man so that it looks "normal" when
printed?
man ps | col -b | lpr
(works for me all the time on HP/UX).
Hartmut
: I am wanting to print a man page, but if I do something like:
: man ps | lpr
: then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
: t_h_i_s
: How can I filter the output of man so that it looks "normal" when
: printed?
If you have Ghostscript setup, you can print very nice looking postscript
versions of the man pages. man -t will output a postscript file.
Ray
>If you have Ghostscript setup, you can print very nice looking postscript
>versions of the man pages. man -t will output a postscript file.
Ashok
--
Department of Oncology University of Wisconsin-Madison
"If people are good only because they fear punishment, and hope for
reward, then we are a sorry lot indeed." -- Albert Einstein
man manQuote:>I am wanting to print a man page, but if I do something like:
>man ps | lpr
>then the bolded text comes out of the printer l_o_o_k_i_n_g_ _l_i_k_e_ _
>t_h_i_s
or (for a somehwat nicer output)
#!/usr/bin/perl
# (c) 1996 Heiko Schlittermann
use File::Basename;
$Me = basename($0);
END { unlink $tmpdvi; }
$tmpdvi = "/tmp/$Me.$$.dvi";
$? and die "$Me: got ", $? >> 8, "\n";
system "dvips -f $tmpdvi";
$? and die "$Me: got ", $? >> 8, "\n";
exit $?;
Heiko.
1. Standard man pages to "Catted" man pages!
To Anyone Interested:
How does one take a standard "troff"ed (?) man page that comes
with a package off the net (ending in .1, .2, etc) and turn in into a
compressed, "cat"ted man page (ending in .1.Z, .2.Z, etc) that are
stored in the directory /usr/man/catN (N = 1,2,3,...) that can be read
by the standard man utility that comes with the SLS distribution? I'm
sure that this is trivial to do, and is probably written down
SOMEWHERE, but I've got only so many hours a day I can spend reading
FAQs and HOWTOs. Thanx in advance...
--
Dr. Richard Procassini
Methods Development Group
Mechanical Engineering Department
Lawrence Livermore National Laboratory
Mail Stop L-122
P.O. Box 808
Livermore, CA 94551
(510)424-4095
2. Powergraph 64 Video Xconfig?
3. How to format BSD man pages (groff man) using "classical" troff man?
4. pseudo random generator in g77 ?
5. how to prevent "man" generates "cat" pages?
6. DNS
7. Difference between "man arp" and "man 7 arp" ?
8. PINE does news too...Who knew?
9. GETSERVBYNAME()????????????????????"""""""""""""
10. Printing "man" page ......
11. ! Q: How can you print out a "man" page in AIX
12. How to print "cat" man pages to postscript printer ?
13. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""