#!/bin/bash for f in *; do if [ -d ${f} ]; then echo "" echo "Running Problem: $f" cd $f ./run.sh cd .. fi done