#!/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/{} \;本文共 223 字,大约阅读时间需要 1 分钟。
#!/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://bdkpx.baihongyu.com/