Recursive Find and Replace in Linux
I’ve once again needed to do a recursive find and replace to replace all memcpy in ffmpeg source for memmove since there’s a bug about the optimizations done with memcpy in x86_64 archs.
I thought this tip could be helpfull to others to in future. So here it is, how you can do it too:
find ./ -type f | xargs sed -i 's/string1/string2/g'
And that’s all folks! ;-)