Last active
March 24, 2019 06:00
-
-
Save miguelmota/e6ec47f3bdfa4aaf039cc8a2fa838a26 to your computer and use it in GitHub Desktop.
Bash command tee stderr and stderr
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
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