Using glob (was Re: Remove files of same type (extension))

Oleg Broytmann phd at phd.pp.ru
Tue Sep 25 11:19:38 CEST 2001


On Tue, Sep 25, 2001 at 11:10:00AM +0200, Boyd Roberts wrote:
> >    And this is exactly how UNIX shells do it.
> 
> with the complicity of ls (think about the a option).
> 
> * matching a file beginning with a dot was a conditional
> compilation option with the bourne shell.

   This has nothing with ls. The * expansion is the shell's job. Example:

echo *
echo .*

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list