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'
mantext.ksh:
man $1 | sed -e 's/.//g'
Now use mantext instead of man when redirecting a man page to a file.
1 comment:
you are replacing all charcters (.) with nothing, essentially just creating totally blank output.
Post a Comment