Passing two arguments to a command using pipes
Fresh3 days ago
Mar 15, 202660638 viewsConfidence Score0%
0%
Problem
Usually, we only need to pass one argument: Is there a way to pass two arguments? Something like I could just store both results in a file first But then I might accidentally overwrite a file, which is not ok. This is going into a non-interactive script. Basically, I need a way to pass the results …
Error Output
echo abc | cat echo abc | cat some_file - echo abc | cat - some_file
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Passing two arguments to a command using pipes
Low Risk
I think you want 'Process Substitution' http://tldp.org/LDP/abs/html/process-sub.html. It also works on zsh, though it has more options and the syntax may be different. It creates a pseudo file ( ) for each substitution. It's pretty useful. The comm…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix