I\'m trying to run some commands in paralel, in background, using bash. Here\'s what I\'m trying to do:
forloop { //this part is actually written in perl
Forking in a for loop:
for i in x; do ((a; b; c;)&); done
Example:
for i in 500 300 100; do ((printf "Start $i: "; date; dd if=/dev/zero of=testfile_$i bs=1m count=$i 2>/dev/null; printf "End $i: "; date;)&) && sleep 1; done