I solve bugs for a product. The customer has sent a bundle of log files. I am required to search for a particular string in these log files. The number of log files is more than five thousand.
I cannot use grep because I am working on a windows machine.
What are my options here ? I was thinking about writing a program in java where I open every text file in a directory and search for a particular pattern. But I could not find a api where i can open every file one after the other.
Can you please suggest me a solution. I can also code in C++ or C# is somehow a solution can be built there.
Perl. It takes about three lines of code to search every file in a directory for a string. You can learn enough Perl to do that in half an hour.