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