any way to automatically remove points from curves?

 From:  schlurf
I have a quite complex model with a lot of curves (nearly 3000...). Now I need a reduced version where each curve is represented by a line, only the start and end points of each curve should remain, all points in between should be deleted. Is there a way to do this automatically?

I'd appreciate any help on this...

cu, Matthias