I need to redirect stdout to console along with stdout and stderr redirected to a file. This needs to be done inside a shell script. I found the below code to redirect both to console and log file, now I need to remove stderr to console.
exec > >(tee -i "output.log") 2>&1
Could you please help me here?