problem when reading file
modelnine at modelnine.org
Thu Jul 31 15:58:10 CEST 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.
grep -R "myword" .
? Even works on regular expression (with e/fgrep). Type
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.).
More information about the Python-list