that would fail due to headers (strings).
$ sed -s 1d *.txt | datamash crosstab 1,2 sum 3 --filler 0
AA3 CBM2+GH6 CBM50 CE9 GH1 GH51 GT2
A 0 9 4 2 1 0 3
B 5 2 0 0 5 1 3
• 0 views
•
link