How to find directories that only contain a certain type of files (e.g., .txt)?
Peng Yu <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <CABrM6wkatOM+5bdL2bYY7LEpReWEVTDBoJF+B0vszmwJ+EW27Q@mail.gmail.com> |
Hi, How to find directories that only contain a certain type of files (e.g., .txt)? One idea that I have is to just search for all files' paths. Then use a post-processing script to analyze which directories only contain files of a certain type (e.g., .txt extension). Does anybody have a better idea of how to do this search? -- Regards, Peng