In example when I use following query
db.adminCommand("listDatabases").databases.forEach( function (d) {
print ( d.name )
})
I get following result
admin
config
config2
customer1_tnt1
customer2_tnt1
I want to list only those DBs that in result contain string "tnt", because there may be multiple customers and multiple tnt users. How can I achieve that?