[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 打印 manual



这样是省了好几步,不过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
	



Reply to: