I have a comma separated file that looks similar to his format:
aa.com,184.108.40.206,string1 string2 K=12 K2=23 K3=45 K4=56 bb.com,220.127.116.11,string1 string2 K=66 K2=77 K3=88 K4=99
I want to take the third column which contains strings separated by spaces. I want to process the file to separate the third columns first two strings by a comma and ignore the rest of the strings in column 3. The first two fields do not contain spaces. Please note the number of strings in the 3rd column is not fixed to all records. In this example, it is 6 strings separated by 5 spaces. But it can be more or less.
All that I need is to take the 3rd columns first two strings, separate them by a comma, and ignore the rest of column 3 strings.