#command cdx uniq --which last -k ,expr,one+two -c TheCount,end #stdin CDX one two 1 2 2 1 3 2 4 1 5 1 #stdout CDX one two TheCount 2 1 2 4 1 2 5 1 1