i=0 nb_reps=(10 10 10 5 3 3) for nb_rep in ${nb_reps[@]}; do for j in $(seq 1 $nb_rep); do python3 mergesets.py cd ../ornithoscope-appel-offre python3 src/dataset2ultra.py --dataset_name "DS9.$i" python3 src/train.py >> "out_$i.tmp" cat "out_$i.tmp" | grep "scores" >> "out.tmp" mv "out.tmp" "out_$i.tmp" cd ../ornithoscope done i=$((i + 1)) done