$ sort <(mysql -BN -A -h dbstore2001.codfw.wmnet -e "SELECT DISTINCT(table_name) FROM information_schema.tables WHERE table_schema like '%wik%' or table_schema='centralauth' ORDER BY table_name") <(mysql -BN -A -h dbstore1001.eqiad.wmnet -e "SELECT DISTINCT(table_name) FROM information_schema.tables WHERE table_schema like '%wik%' or table_schema='centralauth' ORDER BY table_name") <(mysql -BN -A -h db1031.eqiad.wmnet -e "SELECT DISTINCT(table_name) FROM information_schema.tables WHERE table_schema like '%wik%' or table_schema = 'flowdb' ORDER BY table_name") | uniq