I want to grep for interesting string
, but only in specific folder/file combinations, such as myfolder/myfile.out
.
The directory I'm grepping from may have these combinations in subdirectories of varying depths (otherwise I could just grep 'interesting string' myfolder/myfile.out
) and I also do not want to get results from any myfile.out
that is located in a directory with a different name, for example /deeply/nested/directory/structure/myfolder/myfile.out
shall be grepped, but not /deeply/nested/directory/structure/notmyfolder/myfile.out
.