Ford Focus 2000 shift cable

I have a 2000 Ford Focus with manual transmission. The shift cable has snapped. Can I just replace the cable or does the entire assembly have to be replaced? How easy is this to do?