subst () {
sed \
-e s",foo,bar,"\
$1 > $2
}
subst tests/data/foo $TEST_TMP/foo.tmp
cat $TEST_TMP/foo.tmp
rm $TEST_TMP/foo.tmp