Created
January 2, 2011 19:18
-
-
Save miceno/762750 to your computer and use it in GitHub Desktop.
Get the size of all tables of a database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -e "show table status" | awk -F'\t' '\ | |
{\ | |
printf ("%-25s %15d\n", $1,$7); \ | |
s+=$7 \ | |
} \ | |
END{ print "resultado: ", s} \ | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment