Re: problem when reading file



Am Donnerstag, 31. Juli 2008 15:44:33 schrieb shrimpy:
hi every one, i am new to python,
and coz i want to write a handy command for my linux machine, to find
a word in all the files which are under the current folder.

What about

grep -R "myword" .

? Even works on regular expression (with e/fgrep). Type

grep --help

to see all the options you get (context display, ignoring anything that's not
a proper file or directory, only printing filenames with matches, not the
matches themselves, etc.).

--
Heiko Wundram
.