Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dstraigh

macrumors newbie
Original poster
Oct 22, 2017
20
8
San Jose, CA
I'm trying to use something like this:

find . -type f -newermt 2007-06-07 ! -newermt 2007-06-08 -iname "*file*.txt"

But get a "command not found" error - and it looks like it's because of -newermt

I'm reasonaly sure I've used the above command in the past. Has something changed with macOS causing the find command not to work with -newermt anymore?
 
I'm trying to use something like this:

find . -type f -newermt 2007-06-07 ! -newermt 2007-06-08 -iname "*file*.txt"

But get a "command not found" error - and it looks like it's because of -newermt

I'm reasonaly sure I've used the above command in the past. Has something changed with macOS causing the find command not to work with -newermt anymore?

It works. Seems the problem had to do with copying and pasting (from another document into terminal). Manually retyping the above yielded the expected results.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.