#!/bin/bash myDir=$(dirname $0) for file in $myDir/changes/*/*.sql; do echo "Importing $file" mysql -u root < $file done