Helping Searching Filesystem

From: mysql helppp (mysqlhelppp@yahoo.com)
Date: Sun Mar 06 2005 - 09:17:53 EST


I have a file, words.txt, that is plaintext and looks
like this:

---
mysql
perl
copyright
---
One word per line.  I want to search the filesystem
for all files that include that word in either the
filename or its contents.  The list that I generate
must include which word was found in the file.  
I had been using: 
cat words.txt | perl -lane '"system find / -type f |
xargs -n1 | grep -i -l $_ \$1"'
(or similar -- I don't have my notes) but I need the
list to contain which word was found in while file.
Can anyone suggest a solution?  I'm strugging with
this.
TIA
	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:18 EDT