1: 2: 3: 4: 5:
for file in *.inp do f=$(echo $file | awk -F. '{print $1}') ./PHASE -M $file $f.out done