I want to split stdout so that it is printed both to stdout and stderr. This sounds like a job for tee but the syntax is evading me -
stdout
stderr
tee
./script.sh | tee stderr
Of course, how should stderr actually be referred to here?