随笔分类 -  Linux-Shell

摘要:#! /bin/bash ## sh loopAllFiles.sh DIR_NAME function read_dir(){ for file in `ls $1` #注意此处这是两个反引号,表示运行系统命令 do if [ -d $1"/"$file ] #注意此处之间一定要加上空格,否则会报错 then ... 阅读全文
posted @ 2018-12-06 14:57 bt21cn 阅读(608) 评论(0) 推荐(0)