unix tee stdout and stderr code example Example: bash tee stdout and stderr command > >(tee stdout.log) 2> >(tee stderr.log >&2)