I want to find files containing two strings together, for example the file contains both string1 and string2.
I want the full path of files in output. I don't want to see "permission denied" warnings.
|
|
which is the same as
Edit: heres why
Nothing found, but file b contains both strings. Here's what I think alwbtc wants
|
||||
|
|
Pipe one
|
|||||||||
|
or less redundantly:
This will work if the strings are on different lines of the same file and will also avoid false positives if a filename contains one of the strings. |
|||
|
|