#!/bin/sh pwd=`pwd` for i in `ls -1 `; do if [ -d $i ]; then printf " ...running on %s\n" "$i" >& 2; cd $i env ABAC_CN=1 ./run_test cd $pwd fi done