for table in $(mdb-tables -1 foo.mdb) do #doing something. done