标签:bsp record utf-8 exce echo sel compare bin shell
#!/bin/sh
cd /d/compare
MYSQL="mysql -h -uroot -p**** --default-character-set=utf8 -A";
sql="select * from contrast.dx_record limit 0,10 ";
$MYSQL -e "$sql" >dx.xls
echo "end";
转换编码的指令
iconv -f utf-8 -t gb2312 dx.xls>compare1.xls
标签:bsp record utf-8 exce echo sel compare bin shell
原文地址:http://www.cnblogs.com/zpbk/p/6917629.html