for i in `ls`; { if [ -f $i ];then echo $i--file;else echo $i--directory;fi;}

相关文章: