#!/bin/sh pwd=`pwd` for i in `ls -1`; do if [ -d $i ]; then cd $i if [ -e runcheck ]; then ./runcheck fi cd $pwd fi done