If you're using Windows, you need a third party utility, since there's nothing on the command line that'll do this in one shot.
Another question suggests a "bulk rename utility".
If you're on Linux, you probably have access to a command called rename
.
Now let's look at your filenames - your examples show that all of the bad stuff in the name looks identical, that is, an underscore followed by numbers, but they're in different places in the name.
For something like this, that's a consistent type of problem in a varying location, you would to construct a regular expression to target the junk data.
Since it's just an underscore and a bunch of numbers, that would be easy. The regex will look like this: _\d+
.
This means an underscore, and any digit (\d
), 1 or more times (+
).
The bulk rename utility for Windows has a regex option built in - look at the top left:
You'd place the regex in the "match" box, leave the replacement blank, and hit Rename!
JUST IN CASE: Make a copy of the folder first.
The Linux rename command would need the command written like:
rename 's/_\d+//g' *.mp3
(search for any text matching the regex and replace it with nothing, and do this globally, or as many times as necessary)
What OS are you on? Will greatly impact the answer... – Mikey T.K. – 2016-03-24T03:29:20.660
How much is a "Bunch"? – Moab – 2016-03-24T03:43:38.100