At present, there are many mp3 files with the following file names
1-music1.mp3
2-music2.mp3
3-music3.mp3
4-music4.mp3
5-music5.mp3
.....
10-music.mp3
How to remove the prefix in batch.
The title was wrong. The title was batch renaming.
Batch renaming can be usedls
And pipes andrename
Command
Similar to the following bulk delete command.
ls | grep "^[0-9]\{1,2\}-music.mp3" | xargs -d"\n" rm
http://superuser.com/questions/392872/delete-files-with-regular-expression