由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 请教How to adjust man output?
相关主题
Postscript question.How to see line number in Emacs
A question about command timeHow to save XEmacs options?
a beginner's questionhow to install speedbar on xemacs?
一个奇怪的现象!能在xemacs中把Del键设成删除光标后的字符的功能键吗
How to debug C program in Unixsome wt
a low_hand_question about emacs.EMACS 求教
xemacs 里如何设置让它显示行号?XEmacs Shell 问题
Re: xemacs ?how to display color for java or c mode in xemacs
相关话题的讨论汇总
话题: man话题: adjust话题: output话题: page话题: use
进入Unix版参与讨论
1 (共1页)
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.

1 (共1页)
进入Unix版参与讨论
相关主题
how to display color for java or c mode in xemacsHow to debug C program in Unix
大侠,请问如何在VI和XEMACS中对齐程序?a low_hand_question about emacs.
为什么我看不见新的邮件xemacs 里如何设置让它显示行号?
xemacs Q: how to jump to the desired methodRe: xemacs ?
Postscript question.How to see line number in Emacs
A question about command timeHow to save XEmacs options?
a beginner's questionhow to install speedbar on xemacs?
一个奇怪的现象!能在xemacs中把Del键设成删除光标后的字符的功能键吗
相关话题的讨论汇总
话题: man话题: adjust话题: output话题: page话题: use