Any program / command to see a preview of .sql dump file?
For MySQL and PostgreSQL at least, database dump files are just text files full of SQL commands. So you can use the usual command line tools to get some idea of the contents. For example

grep 'CREATE TABLE' dump.sql | wc -l


to count how many tables are created. Not as slick as what you're hoping to find, of course.