I'm looking for files that contain a string. My command:
grep -rwl '/path/' -e "string"
I want to limit the result to paths that contain a different string. I can do it like this:
grep -rwl '/path/' -e "string" | grep 'path_string'
I would like to optimize the execution, if possible, by only looking at paths with the 'path_string' to begin with. How can I accomplish this?