I Have this output
paeq45:27502
112.26.259.35
20502
tcp
tcp
active
watp45:23564
157.72.135.35
40204
tcp
tcp
active
rupp47:20225
135.42.224.37
10605
tcp
tcp
active
The only thing that is constant is that the FIRST record (element) contains a ":"
Want output like this
paeq45:27502,112.26.259.35,20502,tcp,tcp,active
watp45:23564,157.72.135.35,40204,tcp,tcp,active
rupp47:20225,135.42.224.37,10605,tcp,tcp,active
paeq45:27502
112.26.259.35
20502
tcp
tcp
active
watp45:23564
157.72.135.35
40204
tcp
tcp
active
rupp47:20225
135.42.224.37
10605
tcp
tcp
active
The only thing that is constant is that the FIRST record (element) contains a ":"
Want output like this
paeq45:27502,112.26.259.35,20502,tcp,tcp,active
watp45:23564,157.72.135.35,40204,tcp,tcp,active
rupp47:20225,135.42.224.37,10605,tcp,tcp,active