Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lars666

macrumors 65816
Original poster
Jul 13, 2008
1,209
1,393
I'm searching for a mp3 tag editor (or another solution) which lets me bulk edit the tile in the way: "Keep the first [X] letters, delete every letter behind it" (which varies that's why I can't use an mp3 editor with the much easier to find function "delete last [X] letters".

If anybody knows a solution, I would be grateful if you could drop a note here. Thanks in advance!
 
Open a terminal and change into the folder with the files:

cd /where/ever/your/mp3/are/located

then use

rename -n 's/(.{10}).*(\.mp3)$/$1$2/' *.mp3

to keep the first 10 characters of the filename. Change the number as needed.

The -n option only simulates the command, so that you can verify the changes. Run without it to actually make the changes.
 
  • Like
Reactions: lars666
Thanks, Slartibart! Not at my home computer right now with the files, but will try this out as soon as I am back!
 
Kid3 is a generally well-regarded audio file tag editor. It's open source and therefore (like most open source), a bit more difficult to use than it really should be, but I've used it plenty of times to strip and/or bulk edit meta-data. I'm not absolutely sure if it will do the specific thing you wish to do, but it's certainly worth taking a look at.
 
  • Like
Reactions: lars666
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.