When running commands from a bash script, does bash always wait for the previous command to complete, or does it just start the command then go on to the next one?
add '&' at the end of a command to run it parallel.
However, it is strange because in your case the second command depends on the final result of the first one. Either use sequential commands or copy to b and c from a like this: