A question
Janko Hauser
hauser at ifm.uni-kiel.de
Sun Oct 17 14:24:23 EDT 1999
import glob
for file in glob.glob('*.txt'):
process(file)
HTH,
__Janko
Kristian Nylund <krnylund at io.yok.utu.fi> writes:
> Hello
>
> Could someone tell me an easy way to do
> something like "for i in `ls *.txt`..."
> in python?
>
> Thanks,
>
> Kristian
>
>
--
Institut fuer Meereskunde phone: 49-431-597 3989
Dept. Theoretical Oceanography fax : 49-431-565876
Duesternbrooker Weg 20 email: jhauser at ifm.uni-kiel.de
24105 Kiel, Germany
More information about the Python-list
mailing list