Quantcast
Channel: Recursively list number of files in all deep sub-directories - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by steeldriver for Recursively list number of files in all deep...

You could do something like this:find path/to/topdir1/ -type d -exec sh -c ' d="$1"; set -- "$d"/*; printf "%s: %d files\n""$d""$#"' sh {} \;This will print full paths to the subdirectories - if you...

View Article



Recursively list number of files in all deep sub-directories

I have searched for a solution to listing the number of files in each sub-directory recursively. There are many solutions that will give the number of files in each sub-directory of a given starting...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images