标签:
#!/bin/bash
echo $1
echo $#
if [ ! $# -eq 1 ];
then
echo "usage: ./gbk2utf8.sh src"
exit 0
fi
from=$1
find $from -type d -exec mkdir -p utf8/{} \;
find $from -type f -name *.java -exec iconv -f GBK -t UTF-8 {} -o utf8/{} \;
标签:
原文地址:http://www.cnblogs.com/cute/p/4904497.html