But yeah you can find the duplicate unique line id...
# suitescript
c
But yeah you can find the duplicate unique line ids ('line') and that'll get you most of the way there then use jquery to do what you need to do but again, not supported to do that and can break at any time