Re: problem when reading file
- From: Heiko Wundram <modelnine@xxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 15:58:10 +0200
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
.
- Prev by Date: Debugging of a long running process under Windows
- Next by Date: Re: current week / weeks in year - best practice
- Previous by thread: Re: problem when reading file
- Next by thread: Function References
- Index(es):