create a tmp file for system execution
Donn Cave
donn at u.washington.edu
Wed May 29 16:35:48 EDT 2002
Quoth bokr at oz.net (Bengt Richter):
...
| wouldn't it be faster to do a single ls F.* command piped to a grep for
| the decimal extensions, then to a python script for sorting and final formatting
| or whatever you want to do with the file names? Or am I missing something?
You might have missed Jurgen Hermann's observation that something
like this might be done most easily directly in Python. If the
question really is only "how can I list these files", then I'd go
with os.listdir() and fnmatch.fnmatch().
Donn Cave, donn at u.washington.edu
More information about the Python-list
mailing list