摘要: 遍历某一目录下的所有文件或文档,并输出 #!/bin/bash for file in /home/linux/* do if [ -d "$file" ] then echo "$file is directory" elif [ -f "$file" ] then echo "$file is 阅读全文
posted @ 2019-11-21 22:28 参婵 阅读(116) 评论(0) 推荐(0) 编辑