http://qs321.pair.com?node_id=206243


in reply to A new question from the front line

If you know 'energy' wont occur on successive lines, how about:
perl -pe'$_=/\benergy\b/&&<>'

-Blake