• 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: mdfind – How to Find a Specific Word?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mdfind – How to Find a Specific Word?


  • Subject: Re: mdfind – How to Find a Specific Word?
  • From: 2551phil <email@hidden>
  • Date: Wed, 15 Mar 2017 12:08:30 +0700


On 15 Mar 2017, at 11:57, Shane Stanley <email@hidden> wrote:


You can use a compound predicate:

mdfind -onlyin . '(kMDItemFSName == "find"c) || (kMDItemFSName == "* find *"c) || (kMDItemFSName == "find *"c) || (kMDItemFSName == "* find"c)'


You beat me to it. I was just playing around with the same thing. I got stuck though, as that won’t find

~/Desktop/find.txt

or something like

~/Desktop/Search-and-find-files.txt


Best


Phil
 _______________________________________________
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: mdfind – How to Find a Specific Word?
      • From: Shane Stanley <email@hidden>
References: 
 >mdfind – How to Find a Specific Word? (From: Christopher Stone <email@hidden>)
 >Re: mdfind – How to Find a Specific Word? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: mdfind – How to Find a Specific Word?
  • Next by Date: Re: mdfind – How to Find a Specific Word?
  • Previous by thread: Re: mdfind – How to Find a Specific Word?
  • Next by thread: Re: mdfind – How to Find a Specific Word?
  • Index(es):
    • Date
    • Thread