jon.sprig.gs
How to capture stdout and stderr from a command in a shellscript without preventing piped processes from seeing them
I love the tee command – it captures stdout [1] and puts it in a file, while then returning that output to stdout for the next process in a pipe to consume, for example: $ ls -l | tee /tmp/ou…