您的位置: 首页 > IT文章 > Shell脚本 Shell脚本 分类: IT文章 • 2023-11-30 15:48:13 1. 获取某个目录下的所有后缀为.json,放入convert.php中运行: DATA='./data' for file in $(ls $DATA/*.json); do php convert.php < $file done 2.for循环 //注意引号 for i in `seq 100` do if((i%3==0)) then echo $i continue fi done