FG

copy (split?) stdout instead of redirecting it

Fresh3 days ago
Mar 15, 20262190 views
Confidence Score0%
0%

Problem

In Bash, I'd like to redirect stdout to a file (>> mylog.txt) but also see the stdout output on the screen.. How can I do it with bash?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: copy (split?) stdout instead of redirecting it

Low Risk

Use : will append the output of the command to the file and also show it on screen.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment