I opened a terminal in that folder and executed the following command.
for SONG in ./*
mv $SONG song$NUM.mp3
So lets peek what the above script does:
- Defined a variable NUM and initialized it with 1.
- Defined a foreach loop. Here for each files in current path the for loop is executed.
- Rename(move) the file $SONG to song<num>
- Increase the value of variable NUM by 1.
- end. ;)
song$NUM.mp3in any way you like. But Remember the second argument to the mv command must vary for each loop, otherwise you will end up deleting all files except the last one.