Looping through files in a directory

Matty Sarro msarro at gmail.com
Wed Nov 10 17:46:15 EST 2010


Short story - I have a few thousand files in a directory I need to parse
through. Is there a simple way to loop through files? I'd like to avoid
writing a python script that can parse 1 file, and have to call it a few
thousand times from a bash script. Any input or pointers to functions that'd
help would be very much appreciated. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101110/e55cc391/attachment.html>


More information about the Python-list mailing list