Remove formatting from man pages

To remove the formatting from man pages so that you can redirect them to text and view in vi or another editor you can create a shell alias and associated script:
alias mantext='~/bin/mantext.ksh'
man $1 | sed -e 's/.//g'
Now use mantext instead of man when redirecting a man page to a file.

1 comment:

Felipe said...

you are replacing all charcters (.) with nothing, essentially just creating totally blank output.