Recursively count files in a directory.. Go go backup brain: $ find -type f ¦ wc -l As found elsewhere on the net.