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. -- David
Attachment:
signature.asc
Description: OpenPGP digital signature
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines