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

Thu Feb 24 06:22:41 UTC 2011
Kwan Lowe <kwan.lowe at gmail.com>

On Wed, Feb 23, 2011 at 11:54 PM, neubyr <neubyr at gmail.com> wrote:
> Howdy,
>
> I am getting some errors with find and ls command - such that find is
> able to see a file whereas ls says the file doesn't exist. Initially I
> was trying find and ls together as:
> # find ./ -type f -mtime +15 | xargs ls
>
Instead of piping to xargs, try:
 find . -type f -mtime +15 -exec ls {} \;