Paste one material onto multiple objects

Say I have 10 basic objects (cube, sphere, etc) and I want them all to have the same material. How do I do this quickly? Why do I need it done quickly? Let’s act like those 10 objects were 100 objects.

Apply to one, link to others:
select all, Shift select one with material so it’ll become the last selected and Ctrl - L, Materials. Done.

Hope you don’t need uv unwrapped textures… Multiple same shape objects could be worked by script; not the different ones.