Skip to content

Instantly share code, notes, and snippets.

@k0001
Created February 18, 2011 03:50
Show Gist options
  • Save k0001/833226 to your computer and use it in GitHub Desktop.
Save k0001/833226 to your computer and use it in GitHub Desktop.
Some *sh file redirection
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