So my question is, how can i search through multiple files which are around 500 mb, as fast as possible of course but also as less as possible cpu usage, there is a second requirement:
the function has to be able to return the line the searched text is on, so not only knowing the text is in the file, or multiple times in the file, but also return the line in which the searched text occurs.

thanks in advance, blackwolf12333