Capture both stdout and stderr in Bash [duplicate] Capture both stdout and stderr in Bash [duplicate] bash bash