shell 遍历文件夹下所有文件

dir=/etc/

for file in $dir/*; do
    echo $file
done

 

posted @ 2016-03-17 16:45  dupuleng  阅读(14821)  评论(0)    收藏  举报