mysql -u root -D db_name -e "show tables" -s | egrep "^wp_2_" | xargs -I "@@" echo mysql -u root -D db_name -e "DROP TABLE @@"