FG
💻 Software

Understanding how inputs are sent to pipes in Bash

Fresh7 days ago
Mar 15, 20268707 views
Confidence Score0%
0%

Problem

I dont quite understand how pipes work in bash. I know that it takes an output from one command as the input in another command. What an output is I can get because it's what the command prints out to the screen. But how do I know what input a command will take? Here is an example I thought would w…

Error Output

which gem | rm

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Understanding how inputs are sent to pipes in Bash

Low Risk

"Input" and "command line arguments" are different things. removes the files provided as arguments. A pipe redirects the output of the left-hand command to the input of the right-hand command. It does not affect the command line arguments of the pro…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment