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

2020-04-11 Thread Bernhard Voelker
On 2020-04-10 19:29, Peng Yu wrote: > On 4/10/20, Bernhard Voelker wrote: >> ---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<--- >> #!/bin/sh >> >> f="$1" \ >> && test -n "$f" \ >> || { echo "Usage: $0 FILE" >&2; exit 1; } >> >> p="." >> >> # Search until the parent is identical to the

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

2020-04-11 Thread Peng Yu
Recursive also means subdirectories, sub subdirectories, etc. On Sat, Apr 11, 2020 at 4:17 AM Bernhard Voelker wrote: > On 2020-04-10 19:29, Peng Yu wrote: > > On 4/10/20, Bernhard Voelker wrote: > >> ---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<--- > >> #!/bin/sh > >> > >> f="$1" \ >