I misread the question, it’s about batch renaming
You can use the ls和管道和renamecommand for batch renaming
Similar to the following batch delete command.
ls | grep "^[0-9]{1,2}-music.mp3" | xargs -d"n" rm http://superuser.com/questions/392872/delete-files-with-regular-expression
I misread the question, it’s about batch renaming
You can use the
ls
和管道和rename
commandfor batch renaming Similar to the following batch delete command.
ls | grep "^[0-9]{1,2}-music.mp3" | xargs -d"n" rm
http://superuser.com/questions/392872/delete-files-with-regular-expression
perl-rename 's/prefix/replacement/'
for i in $( seq 1 10 );do
mv $i-music$i.mp3 music$i,mp3;
done
This will delete the aaa- in the name aaa-bbb.mp3;