OpenGTA/tools/replace_in_files.sh

11 lines
130 B
Bash
Raw Permalink Normal View History

2015-12-03 00:37:02 +00:00
#!/bin/bash
sed_term="$1"
shift
while [ $# -gt 0 ]; do
cp $1 $1.bak
sed -e "$sed_term" $1.bak >${1}
rm $1.bak
shift
done