Capture stdout to a variable but still display it in the console Capture stdout to a variable but still display it in the console bash bash