how to remove mutilple enrty in a single line in unix
Hi,
Below is a single line output.
subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,common,00000000 subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,01,baoc|notActive|notInduced,activeAndOperative,notActive,notActive,noneDesignated,0,notActive| 00|,notActive|00|,notActive|00|,notActive|00|30|,, subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,02,baoc|notActive|notInduced,notActive,notActive,notActive,noneDesignated,0,notActive|00|,notAc tive|00|,notActive|00|,notActive|00|30|,,
In which "01 02 03 04 05 00 00 00 00 07 00 05" get repeat 3 time in a line.
I need a output which should be like this:
subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,common,00000000 subsD,,hlr,01,baoc|notActive|notInduced,activeAndOperative,notActive,notActive,noneDesignated,0,notA ctive|00|,notActive|00|,notActive|00|,notActive|00|30|,, subsD,,hlr,02,baoc|notActive|notInduced,notActive,notActive,notActive,noneDesignated,0,notActive|00| ,notActive|00|,notActive|00|,notActive|00|30|,,
in a single line output.
Thanks for support.