Here's some code that will help you do that...
Let's say you have a shander named CRIMP and you want to know what shapes are using it.
string $name="CRIMP";
select $name; //selects all the shapes
or
sets -q $name; //lists all the shapes
You could then assign the list of shapes to an array and rename then as such or reassing a different shader.
string $Shapes[]=sets -q $name
;
for($node in $Shapes){
rename $node ($node+$name);
}
Here's the code to see what shader is assigned..
listSets -ets -object nurbsSphere1
// Result: CRIMP //
If you wanted to get really fancy you could turn this shader substitution into a prerender script and not have to go through each file before you render.. it would just happen automatically.