Given a pipe of the form
C1 | C2, if
C2 takes more than one positional argument, is it possible to choose where the output of
C1 is going?
Consider the following example.
$ cat myscript #!/bin/bash cat $1 cat $2 $ cat world.txt World $ echo "Hello" | ./myscript world.txt World Hello
I want the final output to be in correct order (Hello World) by altering only the right side of the pipeline.