Thanks a lot, that was exactly what I meant !!
Just one more question: How can I delete from the final shapefile the duplicate lines (those connecting the same polygons) ?
The line connecting polygon A to polygon B is exactly the same as that connecting polygon B to polygon A.
I need to delete duplicate lines.
I would really appreciate your help !