ベストアンサー1
努力する:
awk '
!($3 in T1) {SQ[++CNT] = $3
}
{T1[$3] = T1[$3] DL[$3] $1
T2[$3] = T2[$3] DL[$3] $2
DL[$3] = ","
}
END {for (i=1; i<=CNT; i++) printf "%s\t%s\t%s\t", T1[SQ[i]], T2[SQ[i]], SQ[i]
print _
}
' file
1,3 2,4 5s 5 6 16s 7 8 23s