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.
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.



