this little tools help you to mass rename you materials in a blender file.
load the script in the blender txt environment, be sure that all you have changed the desired name in the top of the script from dummy "shader name" to your, and the index number from 1 to yours. Than press run and all material are going to be renamed