linux - Create a bash script to delete folders which do not contain a certain filetype -


I have recently participated in a problem.

I have left all my music files in a directory based on tags Folders, in general, the empty almost folders, in general, a thumbs.db file for the album thumb or some type Is the image of. MP3 has the right album art in its new directories, so the old is OK to be removed.

Actually, I have to search any directory in D / Music /:

- There is no subdirectory

- Do not keep any MP3 files < / P>

and then delete them.

I thought it was a shell script or a Bash script or Windows 8.1 (Haha), whatever in the Linux / Unix world.

Any suggestions? I am not experiencing written scripts like this.

This should start with you

Find / Music-Mid-1 -Type D | While reading DT "$ dt" -Mandpeth 1-type D | Read and read; Amp; "$ Dt" -Iname '* .mp3' -type f Find Continue reading & amp; Amp; Continue DELEEET DT

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -