摘要: #! /bin/bash function read_dir(){ for file in `ls $1` #注意此处这是两个反引号,表示运行系统命令 do if [ -d $1"/"$file ] #注意此处之间一定要加上空格,否则会报错 then read_dir $1"/"$file else 阅读全文
posted @ 2022-01-05 16:43 xjce 阅读(376) 评论(0) 推荐(0) 编辑