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

Thu Feb 24 14:08:04 UTC 2011
Brunner, Brian T. <BBrunner at gai-tronics.com>

centos-bounces at centos.org 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
> 
> Similar behavior is seen even when I execute both commands separately.
> Any thoughts on what might be wrong here?

Try: find ./ -type f -mtime +15 -print0 | xargs -0 ls

Insert spiffy .sig here

//me
*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**