Does Python seem appropriate for me?

Steve Holden sholden at cox.rr.com
Mon Apr 23 16:06:08 EDT 2001


"Holland King" <insanc at cc.gatech.edu> wrote in message
news:9c20i5$qhc$1 at solaria.cc.gatech.edu...
> Tim Peters <tim.one at home.com> wrote:
> : the littlest things will drive you mad.  Trivial example:  say you use
>
> :     dir/s *.py
>
> : today to find all the .py files in the subtree rooted at the current
> : directory.  You're not going to *believe* the hoops you have to jump
through
> : to get that done under a Unix shell instead.  If you have someone around
to
>
> how about:
> find . | grep *.py
>
You'd want quotes around the pattern, and to make sure that the ".py" was at
the end of the filename. Probably simpler just to use a -name argument as
already suggested.

regards
 Steve





More information about the Python-list mailing list