I am trying to generate printable output by using
man k lpr > lprman.txt
This works but the output contains unwanted characters generated by text which was "bold" in the original output. How can I prevent these confusing characters from being generated?
Thanks.
On 4/24/2010 10:46 PM, Dick Roark wrote:
I am trying to generate printable output by using
man k lpr > lprman.txt
This works but the output contains unwanted characters generated by text which was "bold" in the original output. How can I prevent these confusing characters from being generated?
Use this script.
--------------------------------------------- #!/bin/bash ## INSTALLATION: ## MAKE A FILE mancon AND PLACE IT IN THE /USR/BIN DIRECTORY, YOU MUST BE ROOT TO DO THIS ## CHMOD IT TO 700 - * CHOWN TO YOUR USERNAME - * (chown user:user /usr/bin/mancon) ## TYPE IN mancon AT THE TERMINAL AND YOU SHOULD SEE "What is the man page?" ## ANY QUESTIONS VISIT HTTP://CODE-HEADS.COM
echo "CodeHeads Man Page Conversion" read -p "What is the man page?? " M if [[ $M == "" ]] then echo "Sorry need a MAN page to convert" else man $M | col -b > ~/$M.txt echo; echo "Your file has been saved as $M.txt in your home directory" fi ---------------------------------------------
Print the result.
On 04/25/2010 10:46 AM, Dick Roark wrote:
I am trying to generate printable output by using
man k lpr > lprman.txt
This works but the output contains unwanted characters generated by text which was "bold" in the original output. How can I prevent these confusing characters from being generated?
Thanks.
This is from memory.... but I believe I've done something like...
man sar | nroff -nman > sar.txt
On 04/25/2010 10:59 AM, Ed Greshko wrote:
On 04/25/2010 10:46 AM, Dick Roark wrote:
I am trying to generate printable output by using
man k lpr > lprman.txt
This works but the output contains unwanted characters generated by text which was "bold" in the original output. How can I prevent these confusing characters from being generated?
Thanks.
This is from memory.... but I believe I've done something like...
man sar | nroff -nman > sar.txt
and sometimes
man sar | nroff -nman | enscript
On 04/25/2010 05:01 AM, Ed Greshko wrote:
On 04/25/2010 10:59 AM, Ed Greshko wrote:
On 04/25/2010 10:46 AM, Dick Roark wrote:
I am trying to generate printable output by using
man k lpr> lprman.txt
This works but the output contains unwanted characters generated by text which was "bold" in the original output. How can I prevent these confusing characters from being generated?
Thanks.
This is from memory.... but I believe I've done something like...
man sar | nroff -nman> sar.txt
and sometimes
man sar | nroff -nman | enscript
Hi,
a little bit simpler: "man -t sar"
On 04/25/2010 03:16 PM, Joachim Backes wrote:
On 04/25/2010 05:01 AM, Ed Greshko wrote:
On 04/25/2010 10:59 AM, Ed Greshko wrote:
On 04/25/2010 10:46 AM, Dick Roark wrote:
I am trying to generate printable output by using
man k lpr> lprman.txt
This works but the output contains unwanted characters generated by text which was "bold" in the original output. How can I prevent these confusing characters from being generated?
Thanks.
This is from memory.... but I believe I've done something like...
man sar | nroff -nman> sar.txt
and sometimes
man sar | nroff -nman | enscript
Hi,
a little bit simpler: "man -t sar"
Yes, that is simpler..... :-)
It was from memory....a memory of years ago and the system was actually a version of Unix call Epix. I don't think "man -t" existed back then.
Thanks....