gash/test/60-subst.sh

10 lines
117 B
Bash

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