Re: Man Pages in Text?

From: Ed Morton (morton_at_lsupcaemnt.com)
Date: 05/21/04


Date: Fri, 21 May 2004 13:34:39 -0500


Alan Connor wrote:

<snip>
> So I guess I'll have to write a sed script to remove the junk

In case it helps, here's my junk-removal sed script I've been using for
years to clean up man pages:

        sed -e 's/.^H//g' \
                 -e 's/^M//g' \
                 -e 's/^[//g' \
                 -e 's/^G//g' \

Regards,

        Ed.



Relevant Pages

  • Re: Man Pages in Text?
    ... > Alan Connor wrote: ... >> So I guess I'll have to write a sed script to remove the junk ...
    (comp.unix.questions)
  • Re: Standard output piping problem
    ... > My composer cut off a pipe character in the middle of the sed script. ...
    (comp.unix.shell)
  • Re: 1st line w/regex only
    ... Alan Connor wrote: ... the sed script. ... or sed -V or sed --version as a command line. ... Also which Linux distro ...
    (comp.unix.shell)
  • Re: 1st line w/regex only
    ... > Alan Connor wrote: ... > about the need to save your work to a temp file and copy it back into ... > the sed script. ... A distro you've never heard of that is basically a whittled down Debian. ...
    (comp.unix.shell)