#!/bin/bash
DB-csv出力
schema=insvjsk_cmn
cred="-h xxxx.cluster-crfum7txw65z.ap-northeast-1.rds.amazonaws.com ${schema} -u -p"
mapfile result < <(mysql ${cred} -se “SHOW TABLES FROM insvjsk_cmn;”)
path=/home/ec2-user/20190116/100/
for row in “ r e s u l t [ @ ] " ; d o n a m e = " {result[@]}";do name="