This might be a perfect application for nucular. http://nucular.sourceforge.net
If you need help using it I can help a bit by email (not on the list). If you want to build your own solution, what you have might be fixable, but you need to take out the lowest level loops by using dictionaries and the dictionary.has_key(...) method instead of looping over lists. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=long+necked On Nov 18, 7:12 pm, "martin" <[EMAIL PROTECTED]> wrote: > Hello, > > I need some help with my job assignment and the code that is not working. I > am to search all log files and print out how many "name" > used "fields" in all the logs? I have a list of about 50 names and 50 fields > and now i need search and count. > > How to search regardless of the case? > > This what I wrote it does not work or it just ran so slow that I had to stop > it. > > Oh and I have about 100 web logs to search. > > import os > ... -- http://mail.python.org/mailman/listinfo/python-list