How do I replace the positive battery connector on the 97 Nissan pickup truck? on 1997 Nissan Pickup (D21)

The "loop" which wraps around the post on the battery has split. How do I replece this? It looks as if the cable is crimped into the connector piece and there is come kind of connector in the other end of this connector piece.

Asked by for the 1997 Nissan Pickup (D21)
the best way is to buy a new cable from the dealer or you can cut it and install a battery cable end which would be ok and cheaper