I am trying to output the line containing a certain pattern located in specifically named files in a unstructured directory hirearchy. Each file I'm interested in is named "foo.xml". The pattern I'm interested looks like:
<digit><digit>T<digit><digit> (as a PERL regex:
\d\dT\d\d). I want to output the entire line that matches this pattern (even the extra stuff on that line that doesn't match the pattern).
Where I'm at:
find . | grep foo.xml executed in the "root" gives me a list of the files I'd want to scan.
What do I do from here?
I'd much rather do this at the commandline. I could easily write a PERL script but there's probably a really straight forward way to do this.