All my scripts are deemed "work-in-progress" that are functional but endlessly evolving. I hope it can be of use to you in its current form for the application indicated.
The scripts purpose is much larger, to search for specified string sequences in file names for which I don't know the exact case used.
The outputs from a search on my custom index files looks like this:
8.7M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/Data Structures and Algorithms with JavaScript.pdf
6.7M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/Django JavaScript Integration AJAX and jQuery.pdf
1.9M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/Effective JavaScript.pdf
3.9M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/Expert JavaScript.pdf
504K /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/HTML5 and JavaScript Web Apps.pdf
12M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/JavaScript Cookbook.pdf
2.6M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/JavaScript Creativity.pdf
2.6M /DB001_F5/TOPIC__Programming/LANGUAGE__JavaScript/JavaScript Security.pdf
... and that is only a very small subset of results for a search on "JavaScript".