Unix Newbe needing help! Ascii man pages??

Unix Newbe needing help! Ascii man pages??

Post by Gary Chrysle » Sat, 04 May 1996 04:00:00



Ok flame me.. So I don't know unix! Everybodys starts someplace!

Is there a way to extract ALL man pages to pure ascii??

Currently I do:
        man -a <cmd> |& col -b > ~/asciiman/<cmd>.man

I would like to automate this and extract all man pages to <cmd>.man

Thanx to those that reply with usefull comments..


Please CC to email to.. thanks.

 
 
 

Unix Newbe needing help! Ascii man pages??

Post by J Wuns » Sun, 05 May 1996 04:00:00



> Is there a way to extract ALL man pages to pure ascii??

> Currently I do:
>    man -a <cmd> |& col -b > ~/asciiman/<cmd>.man

> I would like to automate this and extract all man pages to <cmd>.man

I don't really know why you would do this (all formatting information
will get lost, and the man pages will look really boring then), but
just in case:

        prefix=/home/myman
        for section in 1 2 3 4 5 6 7 8 9
        do
                mkdir -p ${prefix}/${section}
        done
        cd /usr/share/man
        for file in man*/*
        do
                file=`echo $file | sed -e 's/\.gz$//'`
                gzcat $file | tbl | nroff -mandoc |\
                        col -b > ${prefix}/${file}.man
        done

This will format the system manual.  You will have to do the same for
/usr/local/man/man* and /usr/X11R6/man/man* if you care.

--
cheers, J"org


Never trust an operating system you don't have sources for. ;-)

 
 
 

1. Help: ascii to man page

I briefly scanned the FAQ but found no entry related to this.
Is there some way to convert any text file i.e. cat pages into
a formatted man page.  If there's software that does this could
you point me in the direction where I can get it.

Thanks,
Laborin

2. NFS issue with Linux <--> Solaris

3. Need sed script to convert Mac ascii to Unix ascii

4. REPOST: LOCAL: portland linux users group address is changing

5. Standard man pages to "Catted" man pages!

6. Need help on POP3

7. man page -> ascii

8. MAG DX17F with Metro-X

9. How to convert man page to ASCII only?

10. How to get man pages in ascii format

11. Converting man pages into ASCII?

12. How to save MAN pages into an ascii file

13. QUESTION: how do you save man pages to an ASCII file