avatar
请教How to adjust man output?# Unix - 噫吁兮,危乎高哉
i*r
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,
avatar
h*a
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,

avatar
i*r
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

avatar
dy
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?

avatar
i*n
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,

avatar
A*u
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?

avatar
i*r
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.

avatar
a*e
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.

avatar
D*N
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。