How to report number of files in all subdirectories?
發表於 : 2015-05-02 21:49:55
http://unix.stackexchange.com/questions ... irectories
代碼: 選擇全部
for f in *; do [ -d ./"$f" ] && find ./"$f" -maxdepth 1 -exec echo \; | wc -l && echo $f; done