シェルでfor loopを回す sh test.shでエラーが出た場合は、bash test.shで動かす
#!/bin/bash
ARRAYP=(0.001 0.005 0.01 0.05 0.1)
ARRAYW=(50 100 300)
n=3
touch make_wave.out.log make_wave.error.log
for w in "${ARRAYW[@]}";
do
for p in "${ARRAYP[@]}";
do
NAME="mask_""$p""_""$w""_""$n"
echo $NAME
nohup python3 make_wave.py -p $p -w $w -n $n >> make_wave.out.log 2>> make_wave.error.log &
done
done