function pullall for dir in * if test -d $dir cd $dir echo "---- " $dir "----" git pull cd .. end end end