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