1:
find / -name "*.html" -exec for file in `grep -l host.something.com {} \;`; do; lines=`wc -l $file | cut -f 1 -d' '`; keep=$[lines-2]; head -$keep $file.new; done