When you see your cat eating grass let it. The grass helps a cat vomit up any hair that it has swallowed. When it vomits the hair, it is getting rid of that hair so it doesn't make it sick.