#!/usr/bin/bash for script in $(find . -maxdepth 2 -name docker-update.sh); do pushd $(dirname $script) ./docker-update.sh popd done