Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

list number of files in each folder linux

find . -type d -print0 | while read -d '' -r dir; do
    files=("$dir"/*)
    printf "%5d files in directory %s
" "${#files[@]}" "$dir"
done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #number #files #folder #linux
ADD COMMENT
Topic
Name
1+3 =