Paul Gilmartin wrote:
On Tue, 12 Feb 2008 09:06:57 -0700, Steve Comstock wrote:

From "Shell Script Programming in z/OS UNIX"
(http://www.trainersfriend.com/UNIX_and_Web_courses/u515descr.htm):


Bad URL.  Might help to delimit it with blanks:


( 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 {} \;


If you're doing this, I'd suggest:

    find . -name 'string' -exec grep -i fa {} /dev/null \;

... to cause the filenames to appear in the output.

-- gil

Excellent suggestion, Paul. Thanks.


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

Reply via email to