[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
- recursive find in current and parent etc until an item is found,
Peng Yu <=
- Re: recursive find in current and parent etc until an item is found, Bernhard Voelker, 2020/04/10
- Re: recursive find in current and parent etc until an item is found, Peng Yu, 2020/04/10
- Re: recursive find in current and parent etc until an item is found, Bernhard Voelker, 2020/04/11
- Re: recursive find in current and parent etc until an item is found, Peng Yu, 2020/04/11
- Re: recursive find in current and parent etc until an item is found, Bernhard Voelker, 2020/04/12
- Re: recursive find in current and parent etc until an item is found, Peng Yu, 2020/04/12
- Re: recursive find in current and parent etc until an item is found, Bernhard Voelker, 2020/04/13