5
1
Suppose I execute (in an interactive bash shell) a loop that spawns a bunch of processes in sequence, such as the following.
for i in `seq 15 42`; do if [ -f F$i.flv.mp3 ]; then play F$i.flv.mp3; fi; done
If I kill the current process with Control-C
, it will just go to the next process in the loop, and I have to kill the processes started by an iteration of the loop separately.
Without killing my interactive shell, can I stop the loop from generating or more processes in sequence?