#!/bin/sh
lujing=`find /test/*.sql`
for loop in $lujing
do
sleep 2s
name=`basename $loop`
rm -rf $loop
iconv -f GB2312 -t UFT-8 $loop >/test/$name
printf "批量修改完毕!\n\r"
done
#!/bin/sh
lujing=`find /test/*.sql`
for loop in $lujing
do
sleep 2s
name=`basename $loop`
rm -rf $loop
iconv -f GB2312 -t UFT-8 $loop >/test/$name
printf "批量修改完毕!\n\r"
done