In terminal (bash) the following works fine:
cat <(echo "hello")
But if I do:
sh -c 'cat <(echo "hello")'
I get
sh: 1: Syntax error: "(" unexpected
Can you explain the reason why?
Btw, my overall aim is to write this command in a shell script:
watch -n 1 'cat <(iptables -L INPUT) <(iptables -L FORWARD)'
but it won't work, the reason seems to be the above problem.