I'm not seeing what's confusing about it. "All" and "only" have just their normal meanings. He shaved all those who don't shave themselves means that every single member of the set of people who don't shave themselves are shaved by him. Only means he doesn't shave anybody else outside of that set.
↧