2019-10-02 17:10:25 -0500, Peng Yu:
> I’ve checked this many years ago. One directory exec is not acceptable in
> my case. I ended up with two pass, one to check which directory to include
> and exclude, then search for files in the directory included. But I am
> looking for something better.
[...]
I’ve checked this many years ago. One directory exec is not acceptable in
my case. I ended up with two pass, one to check which directory to include
and exclude, then search for files in the directory included. But I am
looking for something better.
On Wed, Oct 2, 2019 at 4:25 PM Bernhard Voelker
On 2019-09-27 17:26, Peng Yu wrote:
> On 2019-09-27 09:49, Stephane Chazelas wrote:
>> Here, you could do:
>>
>> find . -type d -exec test -e '{}/file.txt' \; -prune -printf '%p/file.txt\n'
>>
>> But note that it involves forking a process and executing a test
>> command in it for each non-pruned d