Re: 打印 manual

2006-11-04 文章 ^_^
用man2html更简单,例如要打印ls的manual,whereis lsls: /bin/ls /usr/share/man/man1/ls.1.gzgzip -d /usr/share/man/man1/ls.1.gzman2html ls.1 lsman.html然后打印html就很简单了On 11/3/06, lish [EMAIL PROTECTED] wrote: 这样是省了好几步,不过a2ps可以转化一下,一页纸放2页内容,比较省纸,我还是接着用它转化一步。On Fri, Nov 03, 2006 at 12:12:12AM +0800, Haifeng Chen

打印 manual

2006-11-02 文章 lish
查看一个命令的man时候,怎么打印出来? 我现在采用的办法是找到命令的man文件,比如: $ locate mailcap|grep man $ cp /usr/share/man/man5/mailcap.5.gz /tmp/ $ gunzip mailcap.5.gz $ a2ps mailcap.5 -o mailcap 这样打印出来,但是我想知道还有什么更快捷的办法? -- ++ ASCII ARTS _o _|,_

Re: 打印 manual

2006-11-02 文章 Haifeng Chen
man -t alias | lpr -Pps Format the manual page referenced by 'alias', usually a shell man�\ ual page, into the default troff or groff format and pipe it to the printer named ps. The default output for groff is usually PostScript. man

Re: 打印 manual

2006-11-02 文章 lish
这样是省了好几步,不过a2ps 可以转化一下,一页纸放2页内容,比较省纸,我还是接着用它转化一步。 On Fri, Nov 03, 2006 at 12:12:12AM +0800, Haifeng Chen wrote: man -t alias | lpr -Pps Format the manual page referenced by 'alias', usually a shell manual page, into the default troff or groff format and pipe it to