Re: 打印 manual
用man2html更简单,例如要打印ls的manual,
whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz
gzip -d /usr/share/man/man1/ls.1.gz
man2html ls.1 > lsman.html
然后打印html就很简单了
On 11/3/06,
lish <lish5i@gmail.com> wrote:
这样是省了好几步,不过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
> the
> printer named ps. The default output for groff is
> usually
> PostScript. man --help should advise as to which processor
> is
> bound to the -t option.
>
>
> 2006/11/2, lish <lish5i@gmail.com>:
> >查看一个命令的man时候,怎么打印出来?
> >我现在采用的办法是找到命令的man文件,比如:
> >$ locate mailcap|grep man
> >$ cp /usr/share/man/man5/mailcap.5.gz /tmp/
> >$ gunzip mailcap.5.gz
> >$ a2ps mailcap.5 -o mailcap
> >
> >这样打印出来,但是我想知道还有什么更快捷的办法?
> >
> >--
>
> --
> Best Regards
> Haifeng Chen
--
+========================================================+
ASCII ARTS
_o
_|<,_
(*)/(*) Lish
--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Reply to: