Archived tweet #9938 from the @leastfixedpoint Twitter Archive@frabcus @BruceHoult I've not used `mr`, though I like the idea; I *have* used variants on this:
$ cat foreachgit
#!/bin/sh
for gitdir in $(find . -type d -name .git)
do
repo=$(dirname $gitdir)
echo "===== $repo"
(cd $repo; "$@")
echo
done