On Wed, May 02, 2001 at 03:12:23PM -0500, J. Patrick Lanigan wrote:
: Thanks to Paul and Mike for the quick response.
:
: Now, does anyone know how I can trim out the unwanted charecters from the
: output of a man page so that I can display it in a browser?
Well, you could use the man2html utility, it doesn't seem like anyone
is interested in tackling the job of converting Man to 'X' on CPAN.
You might get away with stripping out just the text by doing:
man ls | perl -pe's#(.)(\cH\1)|_\cH(.)#$1||$3#ge'
which is complicated and I don't really recommend for a production
environment.
: Sample as is:
:
: NNAAMMEE
: ls - list directory contents
:
: SSYYNNOOPPSSIISS
: llss [_O_P_T_I_O_N]... [_F_I_L_E]...
:
: -----------------------------
: Thanks again,
: Patrick
:
Casey West
--
"Pascal keeps your hand tied. C gives you enough rope to hang
yourself."
--Unknown