News for hackers. Stuff that matters.
Re:Unix Commands I Wish I’d Discovered Years Earlier by bendaid on Tuesday September 10, 2013 @12:04PM (#6360894)
tree does this, don't know about suppressing the actual tree, but it tells you number of files and dirs printed at the end.
Re:Unix Commands I Wish I’d Discovered Years Earlier by laumars on Tuesday September 10, 2013 @12:12PM (#6360968)
A regex match will do that easily enough:

    tree | egrep -o "[0-9]+ file(s|)"
edit: or you could just tail the output (should have thought of this first!)

    tree | tail -n1
Re:Unix Commands I Wish I’d Discovered Years Earlier by ck2 on Tuesday September 10, 2013 @01:22PM (#6361459)
alas it does not show file count per subdirectory