Paul wrote:

On 01/03/2004 03:58 PM, John Richard Smith wrote:

I think I found what you want:

man mencoder | col -b | grep AC > output

I found this trick at the bottom of 'man man'.
HTH,
Paul


yep that works too.
Not sure what the | col -b is supposed to do for you ?
I think it works without it.


Well, man col tells me that it filters reverse and half reverse line feeds:

DESCRIPTION
Col filters out reverse (and half reverse) line feeds so the output is in
the correct order with only forward and half forward line feeds, and
replaces white-space characters with tabs where possible. This can be
useful in processing the output of nroff(1) and tbl(1).


The way I found to capture the output is
man man | col -b > somefile; kwrite somefile

This leaves you with a file 'somefile', I found that kwrite (never use it) does not accept the dash like vi does. (man man | col -b > vi - )

Good luck
Paul

Yep that works too,
[EMAIL PROTECTED] root]# man mencoder | grep AC3 > /root/Desktop/man.txt ; kwrite
/root/Desktop/man.txt
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
[
don't know why I get the Xlib bit ?


but the output of man mencoder | grep AC3 get displayed nicely now.
Neat.

thanks

John


--
John Richard Smith
[EMAIL PROTECTED]




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to