- Attach a connector to each end of each cable.
- Attach a connector to both ends of each cable.
I am not sure the 2nd sentence above I created is grammatically correct.
I think it should be corrected to "Attach (two) connectors to both ends of each cable", because "ends" is plural. But, in such a case, it may be unclear how many connectors are attached to each end.