Grep/Sed/regular expression command question
I'm trying to recursively traverse several directories to remove a string from any files that contain it. I've been reading regular expression tutorials like crazy, but I'm still struggling with the concepts since I'm still a bit of a novice. I wouldn't even ask for help, except that I'm facing a time crunch.
Most of you have probably guessed what's happening already. A had a content management system set up and one of the extensions I ignorantly installed was vulnerable and exploited. A version of the above string was injected into hundreds of php and html files.
File permissions are tight and the extension is removed. At this point, I just want to remove that entire string from all infected files.
Here's what I'm currently failing with:
I was just trying to match the string literally since I'm having a hard time with regexp. I would appreciate any help with this.
Thanks in advance.