shell linux 环境下循环遍历文件夹下所有文件
demofun(){ for file in `ls $1` do if test -f $file then echo "file: $file" elif test -d $file then echo "path: $file" ...