cat list1.txt list2.txt ... listN.txt |\ LC_ALL=C mcesort --parallel=24 -T /path/to/tmpdir -k1 | /path/to/tally-count |\ LC_ALL=C mcesort --parallel=24 -T /path/to/tmpdir -k2nr > final.txt