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.
linux
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.
Best Answer
which is the same as
Edit: heres why
grep string1 /path/* | grep string2
doesn't do what I think alwbtc wants.Nothing found, but file b contains both strings.
Here's what I think alwbtc wants