Find folders with ONLY one specific file in and delete file and folder - How ?
Redhat Linux Enterprise 3
I have a work related issue.
Many folders within a subdirectory some of which have lots of data in and some of which have only one specific file called produkt.fil inside.
I need a command to find and delete those folders that contain ONLY the file produkt.fil - if other files exist (doesnt matter what they are) then they should be left alone. Note: produkt.fil exists in all of the folders always.
Thanks in advance.