for file in "images"/*; do IFS='/' # space is set as delimiter read -ra ADDR <<< "$file" # str is read into an array as tokens separated by IFS IFS=' ' image=${ADDR[1]} for noise in {"cauchy","gaussian","laplace","log_normal","mut_white","white","salt_pepper"}; do for mode in {"svdn","svdne"}; do python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 0 --ylim "0, 0.05" python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 1 --ylim "0, 0.1" python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 1 --color 1 --ylim "0, 0.05" python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 1 --ylim --color 1 "0, 0.1" done done done