In bash script,
echo \"error\" 1>&2 | tee -a log
will print stderr in screen but no log to file, how to do these at same tim
But default only stdout is passed along in pipes, so that in
$ echo "error" | tee
tee only sees the stout from the echo, not the stderr. stderr will still be displayed in the terminal.
tee
echo