1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh set -e doatree() { cd /$1 echo -n $1: find -mindepth 2 -maxdepth 2 -name '.git' -type d | wc -l } doatree sources for repo in core base kde5; do doatree sources/$repo-pkgbuilds done