Re: ls returns file doesn't exist, find finds it??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Feb 23, 2011 at 11:54 PM, neubyr <neubyr@xxxxxxxxx> 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 {} \;
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux