Skip to main content
1 of 2

"in both the PATTERN and the input files" = "in the pattern and in the input files". The preposition "in" applies to both clauses joined by "both".

If the authors had intended to ignore case distinctions in both the PATTERN and the input filenames, they would have said so.