Does Python seem appropriate for me?

Erik Max Francis max at alcyone.com
Mon Apr 23 22:54:03 EDT 2001


Holland King wrote:

> how about:
> find . | grep *.py

*.py will get expanded by the shell; furthermore *.py isn't the regular
expression you're hoping it would be (rather, it's a glob).

Better would be:

	find . | grep '\.py$'

or better yet:

	find . -name '*.py'

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Things are as they are because they were as they were.
\__/ Thomas Gold
    Esperanto reference / http://mirror/alcyone/max/lang/esperanto/
 An Esperanto reference for English speakers.



More information about the Python-list mailing list