Gf-Patterns icon indicating copy to clipboard operation
Gf-Patterns copied to clipboard

Add r flag to fix issue #13

Open deepak-pro opened this issue 4 years ago • 4 comments

As the r flag(recursive file searching) was missing in the JSON file, running gf was causing an error and output is "grep: .: Is a directory". So I added r flag on each pattern file.

Screenshot 2020-09-30 at 3 00 01 PM

deepak-pro avatar Sep 30 '20 09:09 deepak-pro

this creates error when it is piped with urls

seems this tool is broken

juniorhero avatar Dec 20 '20 21:12 juniorhero

Do you mean, it creates an error when the r flag is added or without it?

deepak-pro avatar Dec 22 '20 15:12 deepak-pro

try changing it with -HnriE

s4s0r1 avatar Jan 18 '21 20:01 s4s0r1

grep -RiIl '"-iE"' | xargs sed -i 's/"-iE"/"-HnriE"/g'

So it is possible to modify all files at once

arthur4ires avatar May 05 '21 08:05 arthur4ires