about summary refs log tree commit diff stats
path: root/tools/scripts/replace.sh
blob: 8e393f0ff553b3b8f706c9ab6d899038aae2fad6 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

folder=$1
oldstring=$2
newstring=$3

grep -rl $oldstring $folder | xargs sed -i s@$oldstring@$newstring@g