Glenn Cole writes:
>
> Brad Kirchner writes:
> > When I do:
> > man sed > temp
> > ...I get lots of garbage when I open it up in vi.
> > I want to be able to somehow convert the formatting in a man page to
> > just plain ascii so vi can view and edit it.
>
> James Clark replies:
> > Do a man on man and there is an option for clear text, no highlights, for
> > just the purpose you are wanting it for. I do not use the option enough to
> > remember what it is, but I know it is there.
>
> I'm interested in hearing the solution to this, because
>
> (1) I don't see the option in 'man man'. (I have -k for keyword lookup,
> -M to search a specific path, -w to show the filename for the man
> entry, and -x to show what files are being searched. That's it!)
On HPUX, the option is "-", i.e. "man - sed >temp". But you're right, I don't
see this option listed for MPE.
> (2) On HP-UX, I would use
>
> man sed | col -b > temp
>
> but 'col' does not exist on MPE!
>
> Hmmm...well, THAT's interesting! I don't have this problem at all!
> That is, I have no highlights when doing the 'man' to the screen,
> and thus no special chars when I do the 'man' to a file!
Like Glenn, "man sed" is clean for me too, both to the screen and to a file.
--
Mark Bixby E-mail: [log in to unmask]
Coast Community College Dist. Web: http://www.cccd.edu/~markb/
District Information Services 1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)
|