how to search multiple textfiles ?
kyosohma at gmail.com
Fri Sep 26 15:45:59 CEST 2008
On Sep 26, 8:35 am, Stef Mientki <s.mien... at ru.nl> wrote:
> I want to search multiple textfiles (python source files) for a specific
> I can find all files, open them and do a search,
> but I guess that will be rather slow.
> I couldn't find any relevant information through google.
> Does anyone know of a search library that performs this task fast ?
> If it indeed only concerns py-files,
> is there another way of searching words ?
> ( I could imagine that such a "py-only-search" would have benefits,
> because you could set a flag to see the words in comment yes or no )
> Stef Mientki
> Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629.
> The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629.
On Windows I use the free version of Bare Grep: http://www.baremetalsoft.com/baregrep/
No, it's not a Python solution, but it works for my needs. You should
try using Python to search your script files and see if it really is
too slow though.
More information about the Python-list