I have a large number of csv files that look like this:
XXXXXXXX
xxxxx
Shipment, YD564n
XXXXXXXXX
xxxxx
1, RR1760
2, HI3503
3, HI4084
4, HI1824
I need to make them look like this:
XXXXXXXX
xxxxx
Shipment, YD564n
XXXXXXXXX
xxxxx
YD564n, 1, RR1760
YD564n, 2, HI3503
YD564n, 3, HI4084
YD564n, 4, HI1824
YD564n is the send number and will be different for each csv file. But this always happens immediately after “Shipment”.
What vim commands can I use?
Thomas ODell