Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux count number of files in directory and subdirectory

find . -type f | cut -d/ -f2 | sort | uniq -c | sort -nr
 
PREVIOUS NEXT
Tagged: #linux #count #number #files #directory #subdirectory
ADD COMMENT
Topic
Name
9+1 =