[PLUG] Can't find a file
Dick Steffens
dick at dicksteffens.com
Thu Sep 11 23:25:05 UTC 2014
On 09/11/2014 04:09 PM, John Jason Jordan wrote:
> On Thu, 11 Sep 2014 14:08:31 -0700 (PDT)
> Rich Shepard <rshepard at appl-ecosys.com> dijo:
>
> I finally got some results with:
>
> find -maxdepth 5 -atime +10 -name \*.odt
>
> Putting the escape in front of the * is necessary unless you quote the
> pattern, but doing '*.odt' produced no results. The escape worked,
> however.
>
> But the problem is that the above command delivered every .odt file on
> my computer, which is many hundreds, if not thousands.
How about piping it to grep with the name of the file you're looking for?
find -maxdepth 5 -atime +10 -name \*.odt | grep nameoffile.odt
--
Regards,
Dick Steffens
More information about the PLUG
mailing list