-newermt doesn't work with find command?

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?
 

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?
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.