Over a million developers have joined DZone.

Count Files In Subdirectories

·
// Count files in subdirectories


find . -mindepth 2 -type f -printf '%P\n' | cut -d/ -f1 | uniq -c
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}