create a tmp file for system execution

Bengt Richter bokr at oz.net
Mon Jun 3 04:45:15 EDT 2002


On 29 May 2002 20:35:48 GMT, "Donn Cave" <donn at u.washington.edu> wrote:

>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().
>
Yes. Looks like our mail crossed too.

Regards,
Bengt Richter



More information about the Python-list mailing list