How to do "xxx | more" using less or cat ?

simon.p.cozens@jp.pwcglobal.com simon.p.cozens@jp.pwcglobal.com
Tue Apr 18 04:26:00 GMT 2000


> How to do "xxx | more" using less or cat ?

xxx | less

Or maybe I misunderstand the question.
If the messages are on standard error, you need
to redirect that to standard output - a pipe
connects output to input, and leaves error alone.

Standard error sits on file descriptor 2, and
standard output sits on file descriptor 1. So,
to do the redirection, you want something looking
like this:

xxx 2>&1 | less

I don't know if that's what you want, but it's
the answer to your question. :)

Simon
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list