Can one use multiple here-docs to provide input to a command in bash?
$ cat <<<foo <<<bar bar $ cat <<EOF1 <<EOF2 > foo > EOF1 > bar > EOF2 bar
Obviously, in both cases, the second here-doc is used as stdin, and replaces the first reference. Is the solution to use
$ cat <(echo -n foo) <(echo bar) foobar
Also, for some reason, using a combination didn't work for me. Why would that be?
$ cat <<<foo <(echo bar) bar $ cat <(echo -n foo) <<<bar foo