#!/bin/bash
if [ "$#" -ne 2 ]; then
	echo >&2 'usage: esql-db-sub path-to-old-db path-to-new-db'
	echo >&2 'warning: works on all *.e files under cwd, be careful.'
	exit 1
fi
from=$1
to=$2
modify $(find . -name '*.e') : perl -pe 's,(["'\''])'$from'(["'\'']),$1'$to'$2,g'
