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
Does any one have a cleaner solution? (I don't like using the
temporary file discriptor (3)).
On Monday, July 27, 1998 3:25 PM, beitamos [SMTP:email@example.com]
> Supose I have a program that output long text to stderr. Can I use the
> command to page in it ? How ?
> Can I switch the stdout with the stderr ?
> Unsubscribe? mail -s unsubscribe firstname.lastname@example.org
Unsubscribe? mail -s unsubscribe email@example.com < /dev/null