Does Python seem appropriate for me?
Weiqi Gao
weiqigao at networkusa.net
Mon Apr 23 21:43:07 EDT 2001
Holland King wrote:
>
> 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
To acomplish what dir/s *.py does, you have to do something like this :(
find . -name "*\.[Pp][Yy]" -exec ls -l {} \;
--
Weiqi Gao
weiqigao at networkusa.net
More information about the Python-list
mailing list