shell 文件个数 vs 文件夹个数

文件个数 ls -l |grep "^-"|wc -l 

文件夹个数 ls -l |grep "^d"|wc -l

posted @ 2018-01-03 13:59  kakaisgood  阅读(145)  评论(0)    收藏  举报