Database dump cleanup for Drupal 7

Lots of times we don't have control over what tables get dumped into a database backup, or we have to work with an .sql file that someone else made. Drupal's cache and temp tables can make those dumps mighty large, so here's a quick bit of command line magic to delete those parts of the database dump: