How would one go about finding empty folders in a specific path? In other words, I have a music folder, /mnt/sata500/music. In that folder path there are folders that contain albums and music files but there are also various empty folders. I would like to remove those folders but I need to find them first. I realize that I could use Nautilus and find/remove each one by hand but that would take considerable time. I'd like to find them using a command line utility and delete them in a similar fashion.
What I've been doing to find various music files is using find, for example
Code:
[glenn@phenom14 sata500>$ find /mnt/sata500/music/ -type f | grep mp3 | wc -l
2018
Can I use this same type of search to find folders that are empty? If so, how then would I remove them? Maybe pipe the find command to a text file and then use the text file as criteria for the rm command?