How to clean merged branches from all your Git repos? (Assuming they all live in the same master directory.):

for d in */; do cd $d; echo WORKING ON $d; git branch --merged master \
  | grep -v "\* master" | xargs -n 1 git branch -d; cd ..; done