SyntaxFix
Write A Post
Hire A Developer
Questions
The first line occurrences of "foo" will be replaced with "bar". And you can using the second line to check.
grep -rl 'foo' . | xargs sed -i 's/foo/bar/g' grep 'foo' -r * | awk -F: {'print $1'} | sort -n | uniq -c