I have a folder with lots of files which name has the following structure:
01.artist_name - song_name.mp3
I want to go through all of them and rename them using the regexp:
/^d+\./
so i get only :
artist_name - song_name.mp3
How can i do this in bash?
Use the Perl
rename
utility utility. It might be installed on your version of Linux or easy to find.With the
-n
flag, it will be a dry run, printing what would be renamed, without actually renaming. If the output looks good, drop the-n
flag.