递归枚举文件并操作
#!/bin/bashCURDIR=$(cd $(dirname $0); pwd)export GOPATH=$CURDIR/..echo GOPATH=$GOPATHcd $GOPATH/src/battle/luajit_c/srcluafiles=$(find $CURDIR -name '*.lua')for i in ${luafiles[@]}do echo $i ./luajit -b $i $idoneread -p "press any key to exit" -n 1 -r