More Fun With -n
Extract HTML class names:
perl -nle '/class="(.*?)"/ && print $1' *.html