Register
It is currently Mon Jul 28, 2014 6:33 pm

script to search in files for the result of search


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Tue Oct 26, 2010 6:55 am   

Joined: Fri Aug 06, 2010 5:27 pm
Posts: 5
hello , does anyone have any ideea where or how can i search in file index.php for word "example" or anything else i place i try with find and search but i had no success till now.


Top
 Profile  
 PostPosted: Tue Oct 26, 2010 7:13 am   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 532
Hi,

I'm not sure I understand
Code:
find wherever/ -type f -name index.php -exec grep -l example {} \;
bash4 could
Code:
shopt -s globstar
grep -Rl example wherever/**/index.php


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP