working with files with the same extenstion

Terry Reedy tjreedy at home.com
Mon Feb 4 13:24:00 EST 2002


"Ulrich Pfisterer" <ulrich.pfisterer at rmb.co.za> wrote in message
news:3C5EAF50.80004 at rmb.co.za...
> 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