Parallel in native bash Published by wingki on April 29, 2019 N=5 num_jobs="\j" for F in ./*.txt do if [ -f ${F%.txt}.csv ]; then continue fi while (( ${num_jobs@P} >= N )); do wait -n done echo ${F%.pip}.ht ../main.o -i ${F} -o ${F%.txt}.csv & done Categories: Coding, Hobbies Tags: bash, snippets