nroff -man < manpage.1 | col -bx
Use "col -bx" to use to create pure text file.
? turned into readable text:
[g]troff -man -Tascii manpage.1 > manpage.txt
On some systems turn manpages into HTML using doc2html macro file
(maybe at /usr/share/tmac/tmac.doc2html):
nroff -mdoc2html < manpage.1
clean formatted text of the man page try
man vi | col -b > filename.txt
or
nroff -man /usr/share/man/man1/vi.1 | col -b > ...
or
gzcat /usr/share/man/man1.Z/vi.1 | nroff -man | col -b > ...
If you have a postscript printer, use groff to print the
manpages to your printer, as in
zcat /usr/share/man/man1/ls.1.gz | groff -mdoc | lpr
Plain-text (non-postscript):
zcat /usr/share/man/man1/ls.1.gz | nroff -mandoc | lpr
-mandoc will format all man pages; -mdoc only does some of them
-man will do the others
Use netstat to check if services are listening.