Count number of specific file type of a directory and its sub dir in mac July 30, 2023 by Tarik You can do that with find command: find . -name "*.filetype" | wc -l