You shoot the zombies and kill them. That means less ammo, but you doubt the knife would have done much good against that many zombies.