Have you ever tried to do a recursive linux search for a text string inside a particular file? For example
grep -r "mail" *.php
and then it fails because the current folder doesn’t have any php files in it?

This below line will search all files for the text moo

find . -type f -exec grep -i 'moo' {} \; -print

Related Posts

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*


+ 1 = 8

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>