shell 递归枚举文件并操作

递归枚举文件并操作

#!/bin/bash

CURDIR=$(cd $(dirname $0); pwd)
export GOPATH=$CURDIR/..
echo GOPATH=$GOPATH cd $GOPATH/src/battle/luajit_c/src luafiles=$(find $CURDIR -name '*.lua') for i in ${luafiles[@]}
do
echo $i
./luajit -b $i $i
done read -p "press any key to exit" -n 1 -r
上一篇:2018最新苹果APP上架App Store流程(超详细)


下一篇:解决mySQL数据库锁表问题。