Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active March 24, 2019 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/e6ec47f3bdfa4aaf039cc8a2fa838a26 to your computer and use it in GitHub Desktop.
Save miguelmota/e6ec47f3bdfa4aaf039cc8a2fa838a26 to your computer and use it in GitHub Desktop.
Bash command tee stderr and stderr
command | tee >(cat 1>&2)
# 1>&2 means pipe stdout to stderr
# >() means process substitution so to treat it as a file (because `tee 1>&2` is not possible)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment