Basic Format

grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g'

Example

grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'

Advertisements