#!/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/{} ;