标签:file span color dir 遍历文件夹 style pre done bash
#!/bin/bash read_dir(){ for file in `ls -a $1` do if [ -d $1"/"$file ] then if [[ $file != ‘.‘ && $file != ‘..‘ ]] then read_dir $1"/"$file fi else echo $1"/"$file fi done } #测试目录 test read_dir test
标签:file span color dir 遍历文件夹 style pre done bash
原文地址:https://www.cnblogs.com/liyuchuan/p/10756066.html