[CentOS] ls returns file doesn't exist, find finds it??

Rainer Traut tr.ml at gmx.de
Thu Feb 24 08:37:20 UTC 2011


Am 24.02.2011 09:03, schrieb Corey Quinn:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Feb 23, 2011, at 10:26 PM, John R. Dennison wrote:
>
>> On Thu, Feb 24, 2011 at 01:22:41AM -0500, Kwan Lowe wrote:
>>> Instead of piping to xargs, try:
>>> find . -type f -mtime +15 -exec ls {} \;
>>
>> 	Or get rid of child processes entirely:
>>
>> 	find . -type f -mtime +15 -ls
>
> Or don't depend on ls for such applications.  Use stat or echo instead.

Why?
And if you give good advice, why is the OP seeing the problem?

Rainer



More information about the CentOS mailing list