Merge results from uniq -c
Try it with awk
:
awk '{ count[$2] += $1 } END { for(elem in count) print count[elem], elem }' 1.out 2.out
Try it with awk
:
awk '{ count[$2] += $1 } END { for(elem in count) print count[elem], elem }' 1.out 2.out