Re: man pages text only

From: Chris R (Chris_member_at_newsguy.com)
Date: 09/28/04


Date: 28 Sep 2004 13:19:07 -0700

In article <200409281710.i8SHAJgY016186@smtp.andrew.cmu.edu>, Philip Lewis
says...
>
>I think you can do this by making a script along these lines:
>
>unset TERMCAP
>TERM=dumb
>man $*
>

I tried that and with a dumb TERM, the characters are bacically ignored. When I
do man ksh, I see plain text. I do man ksh >ksh.txt and then do a more of
ksh.txt and it looks like plain text. I reset my TERM back to vt100 and look at
the ksh.txt file and all of the escape codes are still in there. The TERM
difference only seems to effect the display, not the output of man. I even
tried man ksh | cat >ksh.txt, in case man was smart enough to determine if
output was stdio vs | command and it still came up the same.

 - Chris



Relevant Pages

  • Re: VG mirroring
    ... Host level migration of EMC frames for HPUX. ... hpux.vgclean - Per volume group clean-up script. ... Initialize the tables by running "ksh hpux.start". ... Look at inq.*.txt to see what devices come from what frame. ...
    (comp.unix.admin)
  • Re: [Long] about ksh93 (Was: Bourne Shell Programming on Windows)
    ... :>: Are you saying that David Korn is an unitiated or ignorant ksh ... :> won't be called in a script. ... :> in every shell. ... that should be teached in every shell programming book. ...
    (comp.unix.shell)
  • Re: vi horizontal split screen
    ... I'm an old ksh hacker, but bash will do fine. ... I started on the SysV R2 Bourne shell, and used csh for a better ... Several ksh improvements were designed to make it faster and more efficient at processing scripts, and one way to do that was substitute built-ins for external commands called from the script. ...
    (comp.editors)
  • Re: A couple of scripting queries
    ... This gets you /usr/local/bin/date, which is gnu date. ... ksh and bash definitely do and probably other newer bourne shells like ... in the script, ... I don't think you actually need any arrays anyways. ...
    (comp.unix.sco.misc)
  • Re: Ksh output garbled/out-of-sync
    ... is starting to look like a problem withksh. ... affected systems and running the test script). ... It turned to be a bug in ksh. ...
    (comp.unix.solaris)