If you can get to the crimped end of the line where it is leaking you can use a dremel to cut just the metal crimped part off. Just cut it length wise to sort of peel it off. Make sure you don't cut into the metal line just slice the crimp back. After you cut the crimped part you can remove the rubber line then. Get some new 3/8" trans cooler line and use hose clamps to secure it. Metal line should be barbed on the end
Hope that makes sense, I can see what needs to be done but maybe not fully explaining it.
Most any parts store should have the line I think, I got some at NAPA before just make sure its for use with transmissions
Maybe one of the others will have a better explanation
