My find command isn't finding with -mmin #

Martin McCormick martin at dc.cis.okstate.edu
Fri Jan 28 13:57:13 UTC 2011


Ian Coetzee writes:
> find . -name "*" -daystart -mmin -120 -print
> 
> There should be a "-" in front of the 120, as per:
> 
> Numeric arguments can be specified as
> 
>        +n     for greater than n,
> 
>        -n     for less than n,
> 
>        n      for exactly n.

Oh, yes. I forgot that part. Thank you. I also discovered that
-daystart needs to go after the -mmin # option. When I first
tried it, it still did not work so I tried +120 which would get
everything older than 2 hours and it found all kinds of stuff as
this was the top of my home directory. So I tried -14400  which
is 24 hours worth of minutes and it then did find the newer
files. putting -daystart after -mmin -120 makes it all work
perfectly. This is a great help.

Martin McCormick




More information about the ubuntu-users mailing list