Re: How to find directories that only contain a certain type of files (e.g., .txt)?

2023-09-15 Thread Bernhard Voelker
On 9/15/23 17:24, Peng Yu wrote: On 2023-09-12 Peng Yu wrote: How to find directories that only contain a certain type of files (e.g., .txt)? This is too inefficient. It will call sh too many times. To be efficient, I will have to call find to just get the path of all files and process the

Re: How to find directories that only contain a certain type of files (e.g., .txt)?

2023-09-15 Thread Peng Yu
On Tue, Sep 12, 2023 at 6:13 PM raf wrote: > > On Tue, Sep 12, 2023 at 06:39:32PM +0200, Andreas Metzler > wrote: > > > On 2023-09-12 Peng Yu wrote: > > > Hi, > > > > > How to find directories that only contain a certain type of files (e.g., > > > .txt)? > > > > > One idea that I have is to ju