On Thu, Sep 11, 2014 at 12:32:54PM -0700, John Jason Jordan wrote:
> I have read the man page for find, and googled, but I continue to fail.
>
> I am looking for a file created no more than ten days ago that is
> an .odt file. It is somewhere in ~/, but which folder I put it in
> escapes me. I need this file urgently.
>
> The following command ought to work according to the man page:
>
> find -atime 10 /home/jjj/*.odt
>
> Can someone please help?
The 10 indicates 10 days ago. As you already know the * needs to be escaped.
Here's an example from my system:
It is amazing how complete is the delusion that beauty is goodness.
~ Leo Tolstoy
Oops, wrong paste.
michael@bivy ~ % find . -mtime -30 -name \*jpg
19:38 2014-09-11 100%
./dl/bistro_maison_dessert.jpg
./dl/camera.jpg
./10Best/keepers/2012-10h.jpg
Commentary on the observations above.
I used mtime, for modified. atime, for accessed, returned too many results
becuase "accessed" is a pretty promiscous descriptor.
http://www.linux-faqs.info/general/difference-between-mtime-ctime-and-atime
You'll note my numeric argument includes -30 for less than 30 days.
As the man page says:
Numeric arguments can be specified as
+n for greater than n,
-n for less than n,
n for exactly n.
Your examples just specified files accessed 10 days ago - nothing newer or
older.
This help?
--
Michael Rasmussen, Portland Oregon
Be Appropriate && Follow Your Curiosity
If people knew how hard I worked to gain my mastery, it wouldn't seem so
wonderful.
~ Michelangelo
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug