Breed a male with the egg move and a female of the Pokemon you want to have the egg move on. They must be in the same egg group. For example, if a male Farfetch'd with Air Slash breeds with a female Samurott, you will have an Oshawott with Air Slash. They are both in the Field egg group.