Globs and quotes

Start in your lab: cd /lab/shell-craft.

A glob is a filename pattern: * matches any run of characters, and ? matches exactly one character. The shell expands a glob into matching names before the command runs. echo never sees the *.

echo spells/*.txt
echo 'spells/*.txt'
find . -name '*.log'

Quotes stop the expansion. That's why find -name '*.log' is quoted: you want find to receive the pattern and match it in every directory, not have the shell replace it with whatever matches here.

Type explain echo spells/*.txt to see what the glob expands to.