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
You can pass parameters to a command group (having sequential commands) and run them in background.
for hrNum in {00..11}; do oneHour=$((10#$hrNum + 0)) secondHour=$((10#$hrNum + 12)) { echo "$oneHour"; echo "$secondHour"; } & wait done