i**********r 发帖数: 36 | 1 When i use man to look at the online help, it gives pages that don't
fit to my printer. How can adjust the line number per page in the output?
Thanks, |
h******a 发帖数: 198 | 2 hehe..
try
man xxx | perl -p -e 's/.\cH//g' > file_name
or
man man | col -b | lpr
enjoy
【在 i**********r 的大作中提到】 : When i use man to look at the online help, it gives pages that don't : fit to my printer. How can adjust the line number per page in the output? : Thanks,
|
i**********r 发帖数: 36 | 3 thanks, himalaya.
this only strips the special characters, How can you adjust the number
of lines in one page?
【在 h******a 的大作中提到】 : hehe.. : try : man xxx | perl -p -e 's/.\cH//g' > file_name : or : man man | col -b | lpr : enjoy
|
dy 发帖数: 12 | 4 Can you use
groff -Tps -man xxx.x >xxx.ps
to get a Postscript file?
The xxx.x is the man file name, for example /usr/man/man1/man.1 or so.
【在 i**********r 的大作中提到】 : thanks, himalaya. : this only strips the special characters, How can you adjust the number : of lines in one page?
|
i*******n 发帖数: 166 | 5 man -t xxx > xxx.ps
【在 i**********r 的大作中提到】 : When i use man to look at the online help, it gives pages that don't : fit to my printer. How can adjust the line number per page in the output? : Thanks,
|
A**u 发帖数: 2087 | 6 I'd like to use this command:
man xxx | enscript -L # -p filename.ps
or
man xxx | enscript -L # -P pritername
where # is the number of lines per page.
【在 i**********r 的大作中提到】 : thanks, himalaya. : this only strips the special characters, How can you adjust the number : of lines in one page?
|
i**********r 发帖数: 36 | 7 Thanks all the responses.
seems all are suggesting to obtain the ps directly, that solves
the misplacement of header and foot, but still I can't find where to
control the nember-of-line-per-page in the ps output, or the font size
in groff. ...
please try manpage for procmail to see how bad its layout is.
【在 A**u 的大作中提到】 : I'd like to use this command: : man xxx | enscript -L # -p filename.ps : or : man xxx | enscript -L # -P pritername : where # is the number of lines per page.
|
a******e 发帖数: 95 | 8 Another way is to use xemacs. The commnd lies in Help0 menu,
then the Unix Manuals submenu.
It can eat up some unnecessary characters, and page infos as the
footnotes are also removed. You will get only the pure ascii text file. Then
you can use paf or a2ps command to convert it to ps format. Or use staroffice
to create more elegant style.
【在 i**********r 的大作中提到】 : Thanks all the responses. : seems all are suggesting to obtain the ps directly, that solves : the misplacement of header and foot, but still I can't find where to : control the nember-of-line-per-page in the ps output, or the font size : in groff. ... : please try manpage for procmail to see how bad its layout is.
|
D****N 发帖数: 430 | 9 or,
man your_command | col -b > command.mantxt
to save a copy of the formatted man page for your_command in
a text file, then you can print it out the way you like.
【在 a******e 的大作中提到】 : Another way is to use xemacs. The commnd lies in Help0 menu, : then the Unix Manuals submenu. : It can eat up some unnecessary characters, and page infos as the : footnotes are also removed. You will get only the pure ascii text file. Then : you can use paf or a2ps command to convert it to ps format. Or use staroffice : to create more elegant style.
|