Recursive file content search

find . -name *.php | xargs grep -i -n 'TERM'

By: crashrox
2009-03-23 14:27:55

What Others Think

find . -name *.php | xargs grep -i -n 'TERM'
wdomburg · 657 weeks ago
grep -ri 'REGEX' *.php
juddmaltin · 657 weeks ago
@juddmaltin: grep: *.php: No such file or directory Doesn't work broseph, only "*" does.
sudopeople · 657 weeks ago
ack -i --type=php 'TERM' ... if you have ack.
bazzargh · 510 weeks and 6 days ago
Great things you’ve always shared with us. Just keep writing this kind of posts.The time which was wasted in traveling for tuition now it can be used for studies.Thanks disposable face mask
KayGasaway · 4 weeks ago
Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. l arginine
KayGasaway · 3 weeks and 6 days ago
Your website is really cool and this is a great inspiring article. ????????
KayGasaway · 3 weeks and 4 days ago
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks ??????
KayGasaway · 2 weeks and 6 days ago
Gambling website 789bet or 789betting is the best online gambling website and legal online casino service, providing online gambling services, online football betting, online slots, online lottery, online baccarat, online games, full range, full range, high return, link system to get wealth. beer777
KayGasaway · 1 week and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: