Globbing

Oliver Fromme check+jw8m7u00rsbgw1jh at fromme.com
Thu Feb 14 08:52:35 PST 2008


Oliver Fromme wrote:
 > This would be the Python way to do it, just for the record:
 > 
 > [x for x in listdir(".") if exists(x + "c")]

Uhm, I'm sorry, the question was to find those files for
which there is _no_ .elc file.  So there's a negation
missing:

[x for x in listdir(".") if not exists(x + "c")]

I think I also got that wrong in my previous zsh example.
But it's trivial to add a negation there, too.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd





More information about the Kernel mailing list