yell "DEBUG:count_jobs:$(count_jobs)";
while [[ "$(count_jobs)" -ge $max_jobs ]]; do sleep 0.1; done; # limit jobs
job "$file" "$dir_out" &
yell "DEBUG:count_jobs:$(count_jobs)";
while [[ "$(count_jobs)" -ge $max_jobs ]]; do sleep 0.1; done; # limit jobs
job "$file" "$dir_out" &