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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.