Output as File Arg
Use the output of another command as a file argument
wc file1 <(echo “hello world”) file2
When you wrap a command with
<(...)
bash generate a temporal file in a path like/dev/fd/64
, then execute your wrapped command, put the output in this temporal file, and finally replace<(...)
with the filename of the temporal file, in this case,/dev/fd/64