in place replace a string in a directory

grep -rl ‘xxxx’ ./ | xargs sed -i ‘s/xxx/yyy/g’

Leave a Reply