Re: HELP NEEDED WITH UNIX COMMAND MAN

From: Martin Blume (mblume_at_socha.net)
Date: 09/01/03


Date: Mon, 1 Sep 2003 20:04:27 +0200


"Lakshmi Jagarlapudi" <jlnarayana@comcast.net> schrieb
> HI
>
> Hey i have a quick question. How do we redirect the output of
> the man command to file which does not have junk or control
> charaters. i think there is an option.(like man -x etc)
>
> ex
> man date > first.txt
>
>
> How do we get the readable output into the first.txt.
>

man man tells you that:
       -T device, --troff-device [=device]
              This option is used to change groff (or
              possibly troff's) output to be suitable for a
              device other than the default.

man groff tells you:
  Available devices are:
       ps For PostScript printers and previewers
       dvi For TeX dvi format.
       X75 For a 75dpi X11 previewer.
       X100 For a 100dpi X11 previewer.
       ascii For typewriter-like devices.
       ...

Hence:

man -Tascii man >man.txt

See, it's actually simple.

RFTM => Read the fine man pages installed on your system.

HTH. YMMV
Martin



Relevant Pages

  • Re: HELP NEEDED WITH UNIX COMMAND MAN
    ... >> Hey i have a quick question. ... How do we redirect the output of the ... >> man command to file which does not have junk or control ... At least on Linux-derived systems. ...
    (comp.unix.programmer)
  • Re: HELP NEEDED WITH UNIX COMMAND MAN
    ... > Hey i have a quick question. ... How do we redirect the output of the man ... > does not have junk or control charaters. ...
    (comp.unix.admin)
  • Re: HELP WITH THE UNIX COMMAND MAN
    ... >Hey i have a quick question. ... How do we redirect the output of the man ... >does not have junk or control charaters. ...
    (comp.unix.shell)
  • Re: HELP WITH THE UNIX COMMAND MAN
    ... >Hey i have a quick question. ... How do we redirect the output of the man ... >does not have junk or control charaters. ...
    (comp.unix.questions)
  • Re: Redirecting lpt1 output to an installed printer
    ... to the lpt1 port. ... I am doing now is to redirect the output using the "net use" ... If there's a recognized printer on that port, ... which I do via a "net use LPT1" command inside a batch file. ...
    (microsoft.public.vb.general.discussion)