working with files with the same extenstion

Terry Reedy tjreedy at
Mon Feb 4 19:24:00 CET 2002

"Ulrich Pfisterer" <ulrich.pfisterer at> wrote in message
news:3C5EAF50.80004 at
> Can anyone please tell me how I would go about doing the following.
> I would like to write a script that would take in a command line
> parameter "*.txt". The script would then loop through every file
with a
> "txt" extension and something with it.

Try the glob module

More information about the Python-list mailing list