recursive find in current and parent etc until an item is found

Peng Yu <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <CABrM6wmPXe6DX+tnW548za_TL56uVj6NohAA8WYooqhUTfKEUQ@mail.gmail.com>
Hi,

I'd like to look for a file by its name in the current directory. If
not found, go the the parent and look for it again. If not go up one
level again and look for it, ... until it is found (or until a given
level is reached). If the file is not found, return an error.

The resulted path should be relative to the original current directory.

Is there a way to do this easily with find? Thanks.

-- 
Regards,
Peng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.