1. Linux

find intf -type d -exec mkdir -p utf/{} \;
find intf -type f -exec sh -c "iconv -f GBK -t UTF-8 {} -o utf/{}" \;

2. Mac

find intf -type d -exec mkdir -p utf/{} \;
find intf -type f -name "*.java" -exec sh -c "iconv -f GBK -t UTF-8 {} > utf/{}" \;
cd utf
find intf -type f -name "*.java" -exec sh -c "cp -fr {} ~/Downloads/java/target/{}" \;