Can't find a file

Yong Huang yong321 at yahoo.com
Thu Feb 17 22:24:33 UTC 2011


The file exists:
$ ls -l /site/forms/cris/help/Collection_Request_Help_files/image001.png
-rw-r--r--  1 appmgrp users 35891 Feb 11  2010 /site/forms/cris/help/Collection_Request_Help_files/image001.png

But find doesn't find it unless the first arg (path) is exactly the directory where the file is:
$ find /site/forms/cris | grep /site/forms/cris/help/Collection_Request_Help_files/image001.png
$ find /site/forms/cris/help | grep image001.png
$ find /site/forms/cris/help/Collection_Request_Help_files | grep image001.png
/site/forms/cris/help/Collection_Request_Help_files/image001.png

>From a higher leve, it finds the same name in other directories:
$ find /site/forms/cris/help -name "image001.png" -ls
$ find /site/forms/cris -name "image001.png" -ls
1093469   40 -rw-r--r--   1 appmgrp  users       35891 Feb 11  2010 /site/forms/cris/depot/crislibs/help/Collection_Request_Help_files/image001.png
...

$ find --version
GNU find version 4.1.20
$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
$ uname -a
Linux xxxx 2.6.9-89.29.1.ELsmp #1 SMP Fri Sep 24 05:16:39 EDT 2010 x86_64 x86_64 x86_64 G

I may be missing something obvious. But I tried -depth, -print, -maxdepth 20, to no avail. Thanks.


      




More information about the redhat-list mailing list