1

Sorry, I'm a little newer to Ubuntu.

I want to use the terminal to delete a large number of mp3 files, but only the ones in a certain album while leaving files in other albums untouched. I have too many files to go through by hand in a reasonable amount of time, so is there any way to selectively delete mp3's by their album tag from the terminal?

1 Answer 1

0

yes.

create a script with these steps:

  • find all mp3 files in given directory
  • for each file check the metadata (id3tag can help you)
  • if it contains your specific string, append to a list (array, file, you choose)
  • at the end of the script, rm all files in the list

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.