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?
I think what you want is the concept of a subshell. Here's one reference I just googled: http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/subshells.html