#!/bin/zsh
cd /my/pic/
{
for x (phonecam/{de,dn,ki,kt}*) {
        print print `ls $x | wc -l` files\; kubectl exec -it -c photoprism deploy/photoprism -- photoprism index $x
} 
} | sort -n -k 1.6