dendenners
Programmer
Hi,
I have scripts whose stdout and stderr output I pipe to 2 different files like so:
script.sh > /tmp/out 2>/tmp/out_err
I would like this output (both stdout and stderr) to also appear on the screen when I run the script. I know I could do
script.sh | tee /tmp/out
but this would pipe all output to only one file. Is it possible to keep error and standard output apart in files and also write all to the screen? Thanks
I have scripts whose stdout and stderr output I pipe to 2 different files like so:
script.sh > /tmp/out 2>/tmp/out_err
I would like this output (both stdout and stderr) to also appear on the screen when I run the script. I know I could do
script.sh | tee /tmp/out
but this would pipe all output to only one file. Is it possible to keep error and standard output apart in files and also write all to the screen? Thanks