[Tutor] Find a Word in *.py (Win XP)

Alan Gauld alan.gauld at btinternet.com
Thu Jan 29 01:47:47 CET 2009

"W W" <srilyk at gmail.com> wrote

> You know, it probably wouldn't be terribly difficult to write the 
> search in
> python. Then you *could* find strings inside rather easily.

Given that there's findstr in DOS and grep in *nix(and for DOS too!)
it hardly seems worthwhile reinventing that particular wheel! :-)

But the Explorer based search does have advantages in that
you can manipulate the found files using the windows GUI where
as with the command line tools you either have to construct
some kind of pipeline or take a note of the found files.

How insane that XP doesn't search the text in "non text" files!

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list