How to search specified text in files on the Mac that are less than 20kb

filesystemsearch

I created an SVG image a few months ago.

Recently I found the file is lost, but I don't think I deleted it.

I need to know how can I find this file by setting up these filters:

  1. only search for files that were created in the past 8 months.
  2. only search for files that are less than 20kb.
  3. search keywords "XXXX" (which I am sure is in that file) that existed in these qualified files.

Is there any way I can do this? Any solution is welcome.

Best Answer

A simple Finder Spotlight search can do this. Navigate to the Folder you want to start the search from. Type Command F, and then enter the search criteria:

enter image description here

I'm not sure what you mean by keywords: do you mean metadata describing the file, or some actual text in the SVG? You could try the "Contents" token for the latter.