[plug] Pipe's

Cameron Patrick cameron at patrick.wattle.id.au
Tue Dec 7 17:18:55 WST 2004


Craig Ringer wrote:

> Redirect stderr to stdout. Assuming bash:
> 
> ${COMMAND} 2>&1 | ${COMMAND2}

That's not at all bash-specific; it should work for any POSIX shell.
If you're using zsh you can do it with &| to pipe both stderr and
stdout; i.e. 'command1 &| command2'

Cameron.




More information about the plug mailing list