Created
February 18, 2011 03:50
-
-
Save k0001/833226 to your computer and use it in GitHub Desktop.
Some *sh file redirection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k@del 0 /tmp % { echo "a" > /dev/stdout; echo "b" > /dev/stderr } 1> >(tee -a out) 2> >(tee -a err >&2) | |
b | |
a | |
k@del 0 /tmp % cat out | |
a | |
k@del 0 /tmp % cat err | |
b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment