How to shrink or resize multiple lines

 From:  Matadem
10882.1 
Good day.
I am working a on project that has about 60 individual straight lines with different lenghts.

Is there a way for example to automatically cut 5mm at the beginning and the end of each line?

Thank you!