#!/bin/bash for d in `ls`; do if [ -d $d ] ; then echo $d git -C $d pull fi done