Mac Script to search and print lines in all text files.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Perhaps someone could assist?

I want to do something like  
$egrep -i -r 'My string /Users/crzzy1/*.txt' ;

and have it print out like below...
$filename.txt: "My string"

of course, my example doesn't work and seems to have trouble with the "*"
Any help would be much appreciated.


Site Timeline