Linux shell遍历文件夹 | 提取文件名和目录名

shell 遍历文件夹内全部文件 function getdir(){ echo $1 for file in $1/* do if test -f $file then echo $file arr=(${arr[*]} $file) else getdir $file fi done
相关文章
相关标签/搜索