摘要:
1 #!/bin/sh 2 function scandir(){ 3 local cur_dir parent_dir workdir 4 workdir=$1 5 cd ${workdir} 6 if [ ${workdir} = "/" ] 7 then 8 cur_dir="" 9 else10 cur_dir=$(pwd)11 fi12 13 for dirlist in $(ls ${cur_dir})14 do15 if test -d ${dirlist};... 阅读全文