1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh GLUSTERFS=$1 OLDDIR=`pwd` for i in `ls | grep "^[0-9]*$"|sort -n` do cd $i/regr if [ -f ./testcase ];then ./testcase $GLUSTERFS fi cd $OLDDIR done