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