Thursday, April 7, 2022

[SOLVED] Redirect stdout to stderr but keep it also in stdout

Issue

I want to be able to redirect stdout to stderr but keep the content of stdout in there also. So not exactly redirect but clone or duplicate.


Solution

Typically:

command | tee /dev/stderr


Answered By - KamilCuk
Answer Checked By - Candace Johnson (WPSolving Volunteer)