Or if you're planning on doing it again, you could get a baggie or container of them from biketools.com, nashbar, performance.
When you're cutting the cable, measure twice, cut once. Also good to neaten up the cut end with a grinder to get rid of any sharp metal coil. Sheldon has a good primer on routing cable - it's more refined than you might think.