files=$(grep -rl oldstring path) && echo $files  | xargs sed -i 's/oldstring/newstring/g' {} \;