home | codereading | contact | math | misc | patches | tech
cat(1) the source code of a man page doesn't work, as you probably noted. To compile it to see in a $PAGER (such as more(1) or less(1)), we would need to use groff(1) correctly:
groff -T ascii -man mymanpage.1 | $PAGER
You might want to open it with an editor too. In that case, non-printable characters will appear. To supress them, use col(1):
groff -T ascii -man mymanpage.1 | col -bx > file.txt