Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux count files in subdirectories

find . -maxdepth 1 -type d | while read -r dir
do printf "%s:	" "$dir"; find "$dir" -type f | wc -l; done
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #count #files #subdirectories
ADD COMMENT
Topic
Name
5+6 =