I'm looking for a alternative for |
operator in bash shell for redirecting output of command as input to the next command. Is there any alternative?
something like :
command1 | command2 | command3
with alternative to:
command1 X command2 X command3
X
will be use in place of |
. Is it possible to avoid of using |
and replace it with the actual operator of that?
The equivalent of
command1 | command2
iscommand2 < <(command1)
This can be extended to three (or more) commands too.
command3 < <(command2 < <(command1))
However, as Oli suggested, although this may produce the same output, it isn't technically the same as a pipe.