I have a file with a stanza format which I'd like converted into a comma separated line format:
Input file:
ITEM: 0012345
COST: 750.00
QTY: 2
DESC: GARMENT
ITEM: 0099887
COST: 250.00
QTY: 5
DESC: FOOTWARE
ITEM: 5024655
COST: 50.00
QTY: 10
DESC: TIE
Desired output:
0012345, 750.00, 2, GARMENT
0099887, 250.00, 5, FOOTWARE
5024655, 50.00, 10, TIE
Any ideas?
Thanks
Input file:
ITEM: 0012345
COST: 750.00
QTY: 2
DESC: GARMENT
ITEM: 0099887
COST: 250.00
QTY: 5
DESC: FOOTWARE
ITEM: 5024655
COST: 50.00
QTY: 10
DESC: TIE
Desired output:
0012345, 750.00, 2, GARMENT
0099887, 250.00, 5, FOOTWARE
5024655, 50.00, 10, TIE
Any ideas?
Thanks