I’ll add a tiny caveat….
If you’ve literally just unbolted the Avid callipers and replaced with Shimano then the above advise is valid.
However, if you’ve replaced the mounts/adaptors as well or the rotors then just check a couple of other things…
If you are using the original Avid rotors but new Shimano adaptors then double check you don’t have 165mm or 185mm rotors (early Juicy’s and BB7s did from memory) as the Shimano mounts will be expecting 160mm or 180mm and clearance may not be enough.
Likewise in reverse, if you’re using new Shimano rotors with Avid adaptors and you had 165mm or 185mm rotors then the adaptors will still be placing the callipers too far out radially and you’ll need to replace the adaptors.
If your Avids used 160mm or 180mm rotors then it’ll all be OK.