How to find all Mac OS X files that have been added recently (within the last day)

How to find all files that have been added within the last day on a Mac OS X system: This command doesn't seem to be as accurate as the Unix find command, but it seems to be a bit faster:

mdfind 'kMDItemFSCreationDate >= $time.yesterday' | grep -v Cache | grep ".jar"

I just tried to use it to find some files that were recently downloaded by Maven, but it didn't actually work very well. That being said, I hope that a variation of this mdfind command will be helpful.

Add new comment

The content of this field is kept private and will not be shown publicly.

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.