Really need some help with this one, trying to use sed (hope this is the best solution) to replace last comma for each block of lat longs. examples below.
Original file
;REGION
SOLID,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
;REGION
SOLID,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
;REGION
SOLID,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
Resulting file
;REGION
SOLID,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG;
;REGION
SOLID,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG;
;REGION
SOLID,
LAT,LONG,
LAT,LONG,
LAT,LONG,
LAT,LONG;