--include=PATTERN
só funciona quando você adiciona -r
$ grep -r --include='*.html' 'li' .
-R, -r, --recursive Read all files under each directory, recursively; this is equivalent to the -d recurse option.
--include=PATTERN Recurse in directories only searching file matching PATTERN.
--exclude=PATTERN Recurse in directories skip file matching PATTERN.