Luis M Martinez wrote:
According to the link posted I'd use:
find . -exec grep "www.athabasca" {} \; From your working Directory
find /my_path -exec grep "www.athabasca" {} \; From whatever path
I've never used the '{}' notation ... try first without the quotes.
From "Shell Script Programming in z/OS UNIX"
(http://www.trainersfriend.com/UNIX_and_Web_courses/u515descr.htm):
"-exec command \; - runs specified command; if command
contains this string {}, the string
is replaced by the found file"
also, later...
find . -name 'string' -exec grep -i fa {} \;
or
grep -i fa $(find . -name 'in*')
...
generally the second is faster.
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html