#!/bin/sh p=$PWD for f in `find -maxdepth 1 -type d` do if [ $f != "." -a $f != "./.svn" ];then echo ">>> $f" cd $p/$f $* cd $p fi done