Re: Finding Files containing a string
Re: Finding Files containing a string
- Subject: Re: Finding Files containing a string
- From: Wayne Melrose <email@hidden>
- Date: Mon, 9 Jul 2007 12:54:06 +0200
On 9. jul. 2007, at 12.44, Rob Stott wrote: Yup, I think Wayne's right to suggest shell scripting. Personally, I'd have done it slightly differently though;
set theSourceFolder to POSIX path of (choose folder) set theResult to every paragraph of (do shell script "egrep -l 'I325010[a-z]' " & (theSourceFolder & "*"))
repeat with theFile in theResult --whatever you want to do with your files... end repeat
Hey Rob,
just out of curiosity. what would egrep do for me that grep wouldn't?
I always like to know about different tools when i see them :)
thanks
wayne
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden