- 论坛徽章:
- 0
|
[root@IMServer kkg]# ./kkg.sh
请输入流水号
1
select tx_code, amt ,brf from trace_log where trace_no = 1 |dbacc
ess nbss
按Y确认修改,按其它键退出
Y
bye-bye
[root@IMServer kkg]# cat kkg.sh
while [ 1 ]
do
echo "请输入流水号"
read string
if ( echo "$string" | egrep -q '^[0-9]+$' );then
echo "select tx_code, amt ,brf from trace_log where trace_no = $string |dbacc
ess nbss"
echo "按Y确认修改,按其它键退出"
read str
if [ $str = y ]
then
echo "begin"
echo $string
echo "end"
else
echo "bye-bye"
exit 1
fi
fi
done
[root@IMServer kkg]# ./kkg.sh
请输入流水号
1a
请输入流水号
1
select tx_code, amt ,brf from trace_log where trace_no = 1 |dbacc
ess nbss
按Y确认修改,按其它键退出 |
|