I would like to delete column 3 and keep the same structure on output file.
input file
12,10,10,10 10,1
12,23 1,45,6,7
11 2,33,45,1,2
1,2,34,5,6
I tried
awk -F, '!($3="")' file | awk -v OFS=',' '{$1=$1}1'
12,10,10,10,1
12,23,1,6,7
11,2,33,1,2
1,2,5,6
Output desired
12,10,10 10,1
12,23 1,6,7
11 2,33,1,2
1,2,5,6
Appreciate your help