``` #!/bin/bash count_it_recursive () { shopt -s nullglob dotglob for pathname in "$1"/*; do if [ -d "$pathname" ]; then count_it_recursive "$pathname" else case "$pathname" in *.js) grep -w -c "it(\s'.*',\sfunction" "$pathname" esac fi done } count_it_recursive $1 ``` To trigger: `sh count_it.sh PATH_TO_DIR`