problem when reading file
Heiko Wundram
modelnine at modelnine.org
Thu Jul 31 09:58:10 EDT 2008
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
More information about the Python-list
mailing list