DragonFly kernel List (threaded) for 2008-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Globbing
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
- References:
- Re: Globbing
- From: Rahul Siddharthan <rsidd120@gmail.com>
- Re: Globbing
- From: Michael Neumann <mneumann@ntecs.de>
- Re: Globbing
- From: Oliver Fromme <check+jw8m7u00rsbgw1jh@fromme.com>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]