In a bash script,
I need that if a command fails, the script exits.
Now I do as follows:
++++++++
cat example.txt
if [ $? -ne 0 ]; then exit; fi;
++++++++
is there a more compact way of doing this?
something like
cat example.txt __SUCCESS_OR_DIE__
Start Free Trial