You can also use cmd1 & cmd2. This way cmd2 won't wait for cmd1 to finish before running.
– VinzSep 29 '15 at 10:17
The suggestion does not work when the bash script has set -e enabled. In this case one can do cmd1 || true; cmd2. (Replace ; with new line if needed.)
– ashFeb 29 '24 at 14:39
cmd1 & cmd2
. This waycmd2
won't wait forcmd1
to finish before running. – Vinz Sep 29 '15 at 10:17set -e
enabled. In this case one can docmd1 || true; cmd2
. (Replace;
with new line if needed.) – ash Feb 29 '24 at 14:39