if [ $# -eq 1 ] then EXP_DIR="$1" else echo "Need to have one and only one argument. This argument is the exp directory." exit 1 fi for kfold in {1..4} do for k in {1..100} do rm ${EXP_DIR}/$kfold/$k/clustered_$k.txt done done