[Wolves] Linux man pages
Chris Maggs
chrismaggs at gmail.com
Thu Nov 15 10:03:24 GMT 2007
Incidentally, I'm in work at the moment and having browsed some
websites for shell tutorials I've come up with the following script to
do it. Can anyone see any mistakes (probably loads!) or give any
hints. I assume the part where I run the command and pass it to a
text file is wrong but couldn't find much on that!
{CODE}
#!/bin/bash
#
# ManPage Extractor
# Chris Maggs 2007
# Released as GPL 3
#
clear
echo "ManPage Extractor 0.1"
echo ""
#
#
# Declare the array of commands - just a few examples
#
declare cmd[5]=(grep ls ps pwd umount)
#
# Print the man commands to text files
# Tell user what is happening first and warn that it
# may take a while as there are loads of commands!
#
echo "Creating text files. This may take a while!"
#
# Now the juicy bits!
#
for (( i = 0; i <= 4 ; i++ ))
do
man $i > $i.txt
done
#
# Tell the user we've finished!
#
echo -e "Woohoo! Finished :)"
#
#
{END CODE}
On 15/11/2007, Chris Maggs <chrismaggs at gmail.com> wrote:
> I want to make a database (MySQL) of them so I can access them in work
> (or from anywhere really!) where I don't have access to Linux. I'll be
> putting them on a public webpage along with other hints and tips for
> Linux users (new and experienced!) as I pick them up.
>
> Visitors will also be able to add their tips and so forth. Basically I
> want to try and make a Linux Help page. I know there's loads out there
> but the more coverage we get the better in my eyes!
>
> C
>
>
> On 15/11/2007, ArchLinuxUser dick_turpin <dick_turpin at archlinux.us> wrote:
> > On 15/11/2007, Chris Maggs <chrismaggs at gmail.com> wrote:
> >
> > > Does anyone know where I can download all the Linux man pages in plain
> > > text format - preferably in an archive if possible! I know I could do
> > > "man command > command.txt" but this would take bloody ages!
> >
> > Chris
> >
> > Not seen anyone ask this question yet. "Why?"
> >
> > Not wanting to be a party pooper but you should have the 'man' pages
> > for any install you have unless of course there's not one written and
> > why anyone would want to read a 'man' page for something that's not
> > installed is beyond me.
> >
> > Is there not a book Linux Bible? or something from Oreilly?
> >
> > --
> > Regards
> >
> > Dick Turpin
> > http://www.cannon-linux.co.uk
> >
> > Arch Linux is an independent i686-optimized community distribution for
> > intermediate and advanced Linux users. Utilising a Rolling Release
> > System packages are regularly updated and an ISO release is just a
> > snapshot to the stable packages at that time. So there's no need for a
> > fresh install the command 'pacman –Syu' upgrades the whole system.
> >
> > _______________________________________________
> > Wolves LUG mailing list
> > Homepage: http://www.wolveslug.org.uk/
> > Mailing list: Wolves at mailman.lug.org.uk
> > Mailing list home: https://mailman.lug.org.uk/mailman/listinfo/wolves
> >
>
>
> --
> My GNU/Linux Machines
>
> CPU : 2.8 GHz Genuine P4
> RAM : 512Mb Dual Channel DDR
> OS : Fedora Core 6 Kernel 2.6.18
>
> CPU : 733 MHz PIII
> RAM : 256Mb PC100 SD-RAM
> OS : No OS yet; awaiting new HDD (Debian planned)
>
> Sharp Zaurus SL-5500 running Zynergy ROM
> 266Mhz with 32mb RAM
> Wireless b active
>
> Nokia N770 Debian Linux based SmartPhone
> Wireless b/g active
> Holux M-1000 Bluetooth SatNav Reciever linked to phone
>
> "Linux - The choice of the GNU generation!"
>
> Registered GNU/Linux user - #419550
>
--
My GNU/Linux Machines
CPU : 2.8 GHz Genuine P4
RAM : 512Mb Dual Channel DDR
OS : Fedora Core 6 Kernel 2.6.18
CPU : 733 MHz PIII
RAM : 256Mb PC100 SD-RAM
OS : No OS yet; awaiting new HDD (Debian planned)
Sharp Zaurus SL-5500 running Zynergy ROM
266Mhz with 32mb RAM
Wireless b active
Nokia N770 Debian Linux based SmartPhone
Wireless b/g active
Holux M-1000 Bluetooth SatNav Reciever linked to phone
"Linux - The choice of the GNU generation!"
Registered GNU/Linux user - #419550
More information about the Wolves
mailing list