Can't find a file
m.roth at 5-cent.us
m.roth at 5-cent.us
Thu Feb 17 22:58:18 UTC 2011
Yong Huang wrote:
> 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
<snip>
Sorry, but this is rather unclear: it sure looks like it found it, from
what you posted.
What does
find /site -name image001.png -ls
give?
mark
More information about the redhat-list
mailing list