[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Unix Man Pages
From: |
J Robinson |
Subject: |
Re: [Groff] Unix Man Pages |
Date: |
Fri, 7 Mar 2003 15:00:47 -0800 (PST) |
--- Alejandro Lopez-Valencia <address@hidden>
wrote:
> At 10:05 a.m. 07/03/2003 -0800, J Robinson wrote:
>
> >Suppose I had a list of pathnames to a system's man
> >pages (like /usr/lib/perl5/man/man3/POSIX.3.gz,
> >/usr/man/man3/mitem_visible.3x, etc.) What would be
> a
> >good cross *nix way to convert them to ascii?
>
> Assuming you use groff 1.18.x, does
>
> $ export GROFF_NO_SGR=1
> $ man -c 3 mitem_visible | col -b >
> mitem_visible_3.txt
>
> work for you?
The big problem with this approach is that 'man -c 3
mitem_visible' could specify more than one man page
(say, one in /usr/man and one in /usr/share). Also,
not every man command supports the '-c' option.
>
>
> >Any tips on how to approach this in a
> *nix-independent
> >manner (while still retaining man page formatting)
> are
> >most welcome.
>
> Huh!? You lost me there.
I meant something that converts it to ASCII but
retains some of it's manpage-like formatting.
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/