Find all materials using a specific shader

We’ve got a whole bunch of materials using the Diffuse shader, and we need to change them to use Mobile/Diffuse instead.

It’s a process that could end up happening a couple of times, so I’d like to avoid doing it by hand. Is it possible to automate this somehow (presumably with some kind of editor script?).

Yes, it’s possible. Start but checking the Unity documentation about how to extend the editor.