I don't see that this question is any different from the topic you have running already here:
We usually want to keep conversations on the same topic together. So only create a new threads if your question is substantially different from the previous ones.
But yeah, to follow up on the above, bash
's process substitution
is a simplified, automated way to create a background fifo. In essence "<(..)
" (no space) acts like a file
that contains the output of the commands contained in it.
If needed, this can be then redirected as normal with another "<
$ tr ":" "-" < <( echo "foo:bar" )
Note that the space between the two "<
" characters is necessary.
But for commands that can read from files directly, the extra redirection isn't needed:
$ cat <( echo "foo:bar" | tr ":" "-" )