Created
October 12, 2011 16:34
-
-
Save apinstein/1281740 to your computer and use it in GitHub Desktop.
Redirecting STDOUT and STDERR for complex shell commands
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
(echo 'this is stdout' && this_is_stderr) | |
(echo 'this is stdout' && this_is_stderr) 1> /dev/null | |
(echo 'this is stdout' && this_is_stderr) 2> /dev/null | |
(echo 'this is stdout' && this_is_stderr) > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment