I have a bash script:
#!/bin/bash
VAR1="var1"
VAR2="var2"
VAR3="var3"
cat ${VAR1} \
<(echo -e '<something>') \ # <--------- here's the error
${VAR2}/file123.txt \
<(echo -e '</something>\n<something2>') \
${VAR3}/file456.txt \
<(echo -e '</something2>')
When I run it: sh my_script.sh
, I get the error:
my_script.sh: 9: Syntax error: "(" unexpected (expecting word)
update:
bash
isn't found, "/bin/bash" doesn't exist. neither bash
does.
<(echo -e '<something>')
. See Default Shellbash my_script.sh
.bash -- command not found
andls: /bin/bash: No such file or directory