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

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


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 {} \;



More information about the CentOS mailing list