• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding Files containing a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Finding Files containing a string
      • From: Rob Stott <email@hidden>
References: 
 >Finding Files containing a string (From: David Bradley <email@hidden>)
 >Re: Finding Files containing a string (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: Finding Files containing a string
  • Next by Date: Re: Finding Files containing a string
  • Previous by thread: Re: Finding Files containing a string
  • Next by thread: Re: Finding Files containing a string
  • Index(es):
    • Date
    • Thread