« Home | Poor Mans Raid & Clone Script Tutorial » | Out-going admin cron jobs » | Who hits my website » | Scripts for all occasions » | Bash shell option » | Get the hidden files » | Chrooted SSH HowTo » | How to create IP-IP tunnel between FreeBSD and Lin... » | How can I have two default routes? » | Revealing your routing tables » 

Friday, March 24, 2006 

Convert man pages to text

There can often be times when you want man pages in print, or to simply save them to text for
something like HTML use. The common thing that people do is:

man lp > lp.txt

This will take the output of lp and put it to a file named lp.txt, but it will keep all the formatting
in the document. In order to get rid of those characters, do the following:

man lp | col -b > lp.txt

Create the text file both ways naming one of them "lp2.txt" and do a "diff" on them. You'll see the
difference then.

Links to this post

Create a Link