Shell_循环

Shell__循环#!/bin/shfor file in ./* doif test -f $filethenecho $fileecho 是文件fiif test -d $fileth

Shell__循环

#!/bin/shfor file in ./* do    if test -f $file    then        echo $file        echo 是文件    fi    if test -d $file    then        echo $file        echo 是目录    fidone