I need to print a list of files with match a specific pattern -- a string occurring between two other strings. How do I do that. I don't want to extract text, just list the files that match this pattern.
I need a command that will match and list all filenames which contain an instance of the string
PREFETCH which occurs somewhere between these two strings:
advanced_override.end. The files are all present in the same directory, so the command should search the contents of the current directory '.' and list the filenames which match the specified pattern.
It must have something like this:
advanced_override.begin <lots of text> PREFTECH <lots of other text> advanced_override.end. I need it to match this string somewhere between those two strings and there can be lots of other text before or after
The input files are XML files. And the section beginning with
advanced_override.end can be large with many lines of text.