http://www.perlmonks.org?node_id=1020602


in reply to Searching and replacing quoted regex strings

As you are using the grep command to find the string from the file, why do not you use the grep's exact word matching option?

grep -RlFx 7kyJ7kSKioDTWVWeRB3TiciL1UjcmRiLn4SKiAETs90cuZlTz5mROtHWHd /var/www/html/ > /var/scripts/problem_files.txt

From the grep man page:

-F, --fixed-strings Interpret PATTERN as a (list of) fixed strings

-x, --line-regexp Select only those matches that exactly match the whole line.