Skip to content

Instantly share code, notes, and snippets.

@justjkk
Created May 16, 2012 04:30
Show Gist options
  • Save justjkk/2707418 to your computer and use it in GitHub Desktop.
Save justjkk/2707418 to your computer and use it in GitHub Desktop.
mdb-wc recipe to display wc stats on mdb tables
function mdb-wc {
IFS_ORIG=$IFS;
IFS=$'\n';
for t in `mdb-tables -1 "$1"`
do
echo $t;
mdb-export "$1" "$t" | wc;
done;
IFS=$IFS_ORIG;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment