#!/bin/bash set="ar3.arff ar4.arff ar5.arff cm1.arff kc1.arff kc2.arff" for file in $set do # echo "Running arff/defect/$file" name=`echo $file | cut -d'.' -f1` /usr/bin/env python cliff_defect.py 5 5 defect/$file > results6/$name.csv done