Files
2008-04-15 18:56:58 +01:00

11 lines
141 B
Bash
Executable File

#!/bin/sh
echo "Replacing $1 with $2"
for file in *.[c,h]
do
cat $file | sed 's/$1/$2/g' > $file.tmp
mv $file.tmp $file
done