View Single Post
Old 09-16-2006, 01:35 PM  
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
Quote:
Originally Posted by Wolfy
is there any way to recursively search all directories, say public_html and below?

oh, and say I want to search for foobar - do I use the quotes or no?

grep -Ri "foobar" *
you first : change the directory to public_html

say : cd /web/sites/yourdomain.com/public_html

then

grep -Ri foobar *

if its a single word you can drop the quotes



*edit* the capital R is recursive .. the lowercase i is case insensitive ..
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote