Open deepak-pro opened 3 years ago
this creates error when it is piped with urls
seems this tool is broken
Do you mean, it creates an error when the r flag is added or without it?
try changing it with -HnriE
grep -RiIl '"-iE"' | xargs sed -i 's/"-iE"/"-HnriE"/g'
So it is possible to modify all files at once
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.