Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to count number of files in each directory

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
Source by devconnected.com #
 
PREVIOUS NEXT
Tagged: #How #count #number #files #directory
ADD COMMENT
Topic
Name
1+1 =