blob: 8d5d8d9b276f90a0d06da0194054891b2acc0fc4 (
plain) (
tree)
|
|
#!/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
grep -rl "$oldstring" $folder | xargs sed -i "s@$oldstring@$newstring@g"
|