#!/bin/sh set -eu . ${1} shift mysql -h ${HOST} --port ${PORT} -u ${USER} -p${PASS} ${DB} -B -r -e "SELECT * FROM ${VISTA};" > ${NAME}