OpenGTA/tools/replace_in_files.sh
Anonymous Maarten 78c27f03c8 2006-12-10
2015-12-03 01:37:02 +01:00

11 lines
130 B
Bash
Executable File

#!/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