How to export a certain number of MySql databases with one command

view story

http://serverfault.com – I need to export around 20 databases in a MySql server which contain around 100 different databases, is it possible to export a list of database names into separate files using a console command? (under Linux of course). (HowTos)