Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Searching and replacing quoted regex strings

by vinoth.ree (Monsignor)
on Feb 26, 2013 at 04:58 UTC ( #1020602=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020602]
help
Chatterbox?
[LanX]: Larry the greatest
[LanX]: hmm this joke may be too old for millennials
[LanX]: s/joke/reference/
[Eily]: well, I didn't get the joke and I didn't get the image either because the proxy won't let me
[erix]: Leasure Suit L.
[LanX]: THEY are restricting your Internet?
[LanX]: join the fight brother

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (18)
As of 2017-03-23 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.