Globstar allows you to recursively search through a directory:
That would look something like this:
shopt -s globstar
for f in $(ls **/*.html); do
echo $f
done
Globstar, however, requires bash 4.X, which mac doesn't have (it defaults to 3.X).
Instead, we can find all ".html" files in the current directory recursively using find.
for f in $(find . -name ; do
echo $f
done
No more bash 4.X+ required!