Tuesday, March 19, 2013

Looking for a specific text in any file:

find /path -type f -exec grep -l "string" {} \;
 
contoh:
 
find /var/www/ -type f -exec grep -l "TEXT YOU ARE LOOKING FOR" {} \;