Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux count files in subdirectories

find . -type f | cut -d/ -f2 | sort | uniq -c | sort -nr
 
PREVIOUS NEXT
Tagged: #linux #count #files #subdirectories
ADD COMMENT
Topic
Name
2+4 =