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
相關文章
相關標籤/搜索