FG
💻 Software

Can the output of one command be piped to two other commands?

Fresh5 days ago
Mar 15, 202624970 views
Confidence Score0%
0%

Problem

How can I pipe the output of one command to the input of two other commands simultaneously?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can the output of one command be piped to two other commands?

Low Risk

It sounds like the command will do what you want. The key is to use for process substitution. With , use the following pattern: So if you wanted to use the output of as input to two different programs, save the output of each to different files, and…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment