For example all these audio files below belong to CD 1. At the moment the file name does not tell you that. I am going to rename so that when you look at the file name it will tell you what disc it belongs to.
01 Track 1.wma
02 Track 2.wma
03 Track 3.wma
04 Track 4.wma
Here is a bash script to do this. You must be in the directory that contains the files you want to rename.
ls * | while read data;
do
new_name=`echo $file_name | sed 's/^[0-9][0-9]/1/'` ;
mv "$file_name" "$new_name";
done
This script will rename them to this.
1 Track 1.wma
1 Track 2.wma
1 Track 3.wma
1 Track 4.wma