bug-findutils
[Top][All Lists]
Advanced

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

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


From: Peng Yu
Subject: recursive find in current and parent etc until an item is found
Date: Fri, 10 Apr 2020 09:09:19 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]