Skip to content

Instantly share code, notes, and snippets.

@pivotal-casebook
Created July 13, 2012 15:53

Revisions

  1. Pivotal Casebook created this gist Jul 13, 2012.
    1 change: 1 addition & 0 deletions subdir_file_count.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    for d in $(find . -type d -print0 | xargs -0); do printf '%d\t%s\n' $(find "$d" -type f | wc -l) "$d"; done