RE: Can less read its input from the std
To switch stdout and stderr try this (in bash):
program 3>&1 1>&2 2>&3 | less
stderr will be paged thru less, while stdout will be sent to
the display.
Does any one have a cleaner solution? (I don't like using the
temporary file discriptor (3)).
Tony Richardson
On Monday, July 27, 1998 3:25 PM, beitamos [SMTP:beitamos@inter.net.il]
wrote:
> Supose I have a program that output long text to stderr. Can I use the
less
> command to page in it ? How ?
> Can I switch the stdout with the stderr ?
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org
<
> /dev/null
>
>
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: