I have a bunch of music files (literally thousands of files) in my Fedora PC that I'd like to rename with two rules:
- Every space must be replaced by the character
_
(underscore), and - Every letter in upper case must be replaced by its lower case counterpart.
So for example, the filename of the song Under A Glass Moon, which is the sixth track on the album, is named 06 Under A Glass Moon.mp3
in my computer and I would like it to be named 06_under_a_glass_moon.mp3
.
My question is: Is it possible to do this to every song/file in my collection without having to do it manually.
Note: Just to clarify, I don't need to edit the metadata of the songs; I do that with EasyTAG. All I need to do is to modify the song's filenames.
Update: I know this question has some time and some people have already answered, but I found a simpler solution using EasyTAG. The way to do this is going:
View --> Scanner Mode --> Process Fields.
There you can choose to replace certain character for others (not limited to replacing " " by "_"), you can choose to lowercase or uppercase at will, and many other things. Moreover, you can decide to which fields you wish to make the changes. Very useful feature.
Also, thanks to those who answered. Your help has been very useful.