I've copied a list of several long-running commands into bash shell and pressed Enter. The commands are now being executed sequentially.
For example:
train_agi.sh
find_meaning_of_life.sh
destroy_universe.sh
Now I want the current command to complete, but the subsequent commands to be aborted.
What would be the best way to accomplish this? I was thinking about terminating the shell, but I'm not sure.
wait
in between the commands.