I'm trying to write a bash script that delete all empty directories as well as any directory that only container the
.DS_Store file that Mac generates. I can do the former pretty easily with
find -depth -type d -empty but I can't figure how to find directories that only contain
Is there an easy way of doing this without writing my own recursive search function?