By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,361 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,361 IT Pros & Developers. It's quick & easy.

Re: problem when reading file

P: n/a
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
Jul 31 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.