Im trying to write a bash script that displays all folders containing ogg or mp3 files. I cannot use locate os the results must be up to date.
l have made 2 different attempts, but dont know how to process fhem further.
Code:
find /music -name '`ogg
This outputs the folders, but they have file names appended.
Code:
find /music -type d
This lists the folders, but some contain no media.
How do I process further?