2017年5月25日 星期四

計算目錄中檔案數量

find . -type f | wc -l
 
or 

ls -laR | grep "^-" | awk 'END{print "Number of files: "NR}'

沒有留言:

張貼留言

標籤