#!/bin/bash
i=0;
j=0;
while true
do
echo "alter table fund_detail__tablet_$i add scene_type varchar(10) not null default '';
alter table trade_order__tablet_$i add scene_type varchar(10) not null default '';
" >> ${j}.sql
((j = j + 1));
if [ "$j" == "4" ]
then
j=0;
fi
((i = i + 1));
if [ "$i" == "5" ]
then
break
fi
done