Hi All,
I have been trying to format a file using sed. I can't seem to get the syntax right. I want to append the next line delemited by a comma or a comma and double quotes. Here is an example of the file I'm tring to format:
Before formatting:
00324
03A0312
BRI-u24
0000324
01
H-12
KKG
00325
03A0312
BRI-u25
0000325
02
H-13
KKG
00326
03A0313
BRI-u26
0000326
03
H-14
KKG
After formatting:
00324, 03A0312, BRI-u24, 0000324, 01, H-12, KKG
00325, 03A0312, BRI-u25, 0000325, 02, H-13, KKG
00326, 03A0313, BRI-u26, 0000326, 03, H-14, KKG
or
"00324" , "03A0312" , "BRI-u24" , "0000324" , "01" , "H-12" , "KKG"
"00325" , "03A0312" , "BRI-u25" , "0000325" , "02" , "H-13" , "KKG"
"00326" , "03A0313" , "BRI-u26" , "0000326" , "03" , "H-14" , "KKG"