You may catch a few false matches, but this is the jist of it. It backs up the original files by adding a .bak
extension, but make sure you have your own backup before overwriting valuable code.
I assume these are JavaScript files?
perl -i.bak -pe's/\bm_(\w)/m\u$1/g' *.js
solved Text Edit Change Variable Names [closed]