Recursively count files in a directory
26 Sep 2005find . | wc -l
Outputs all files in current directory piped into the wc
utility with -l switch (count number of newlines). The find
command outputs directory names as well, so it’s not entirely accurate… but fairly close to.