mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
11 lines
141 B
Bash
Executable File
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
|
|
|