gash/test/60-subst.sh

10 lines
116 B
Bash
Raw Normal View History

2018-11-04 19:45:40 +00:00
subst () {
sed \
-e s",foo,bar,"\
$1 > $2
}
subst test/data/foo foo.tmp
cat foo.tmp
rm foo.tmp