Searching through more than one file.
Terry Reedy
tjreedy at udel.edu
Sun Dec 28 16:49:47 EST 2014
On 12/28/2014 12:27 PM, Seymore4Head wrote:
> I need to search through a directory of text files for a string.
> Here is a short program I made in the past to search through a single
> text file for a line of text.
>
> How can I modify the code to search through a directory of files that
> have different filenames, but the same extension?
You could simplify the relevant parts of idlelib/grep.py
--
Terry Jan Reedy
More information about the Python-list
mailing list