Piping command output to tee but also save exit code of command
14209
Pipe output and capture exit status in Bash
70881
Make bash exit != 0 when called by AWK and interrupted with ^C
140247
How to store output command in variable and use this varible again for next command after pipe
102723
Storing output of shell script to variable
36252
Capturing multiple line output into a Bash variable
54750
How do I assign the output of a command to a variable?
94622
How does one extract a command's exit status into a variable?
23213
How do I echo and send console output to a file in a bat script?
2532
saving output of another command
136267
Pipe the output of a command if it is successful
52761
Running shell command and capturing the output
138210
Capturing stdout from a system() command optimally
151142
How to change the output of a command if it has been called already?
141932
How to redirect output of a program to a ZIP file?
62241
How do I set a variable to the output of a command in Bash?
59618
Visual Basic Capture output of cmd
140577
`tee` for commands