Re: Generating printable redirection output with ">"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux