#!/bin/bash pushd $(dirname $0) >> /dev/null grep -v '^#' .mapping | while read DB DUMP do grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB if [[ $(mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB -N -e "SELECT language FROM params;") == *"english.language"* ]] then > /dev/null