I think that the right way to do is:
man rpm |colcrt > rpm.txt

Will do the magic,if you want to print do the same command but send the 
commando for your printer device likeL
man rpm | colcrt > /dev/lp0

>I am not in linux, but I believe there is a -t or -T that will process the
>files, but I don't know what the output looks like before printing. I
>typically do "man -t ldapd | lpr -PHP882C" and it prints the information
>directly. I think the filter is groff if I remember correctly, does anyone
>know if it adds printer commands or just strips the special chars out.
>
>Chad
>
>-----Original Message-----
>From: Ed Lazor [mailto:[EMAIL PROTECTED]]
>Sent: Sunday, March 12, 2000 10:59 PM
>To: RedHat Mailing List
>Subject: how to get text only man pages?
What would be a quick way to get text only man pages? The man command 
formats output by including extra characters to pecify
bold, font color, etc.  If I pipe the output to a text file, I end up with
undisplayable and unprintable characters throughout the document.
  Is there
a way to tell man not to do this or at least filter the unprintable or
undisplayable characters?

Thanks =)

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to