|
Thanks for the link David. I had forgot all about the -exec option on the FIND command. Boy have I got a lot to learn..... Terry > -----Original Message----- > From: David Morris [mailto:David.Morris@plumcreek.com] > Sent: Friday, April 05, 2002 8:32 AM > To: midrange-l@midrange.com > Subject: RE: Need to scan files > > > Rob and Others, > > Midrange Guru ran an tip on find and grep a while > back, the URL is: > > http://www.midrangeserver.com/guruo/guruo011102.html > > The following should work: > > find /QSYS.LIB/MYLIB.LIB/Q*.FILE -exec grep 'searchstring' {} \; > > Be aware that you will run many jobs doing > this so you might read: > > http://www.midrangeserver.com/guruo/mgo022202-story01.html > > David Morris >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.