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

         
                                  




                                                                    
#!/bin/sh

# find and replace string on files
folder=$1
oldstring=$2
newstring=$3

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