I am looking to replace every second comma on every line of a text file with a space using sed or awk in the Linux terminal. The file looks like:
1,2,5,32,67,28,40,30...
2,4,90,18,22,40,20,15....
and I want a specific software input file format:
1,2 5,32 67,28 40,30
2,4 90,18 22,40 20,15...
I tried
sed -r 's/([^,]+ +[^,]) +/\1\s/g' Test.txt > Test2.txt
but this did not work. Any help would be much appreciated.