sed -i~ '/address/d'
sed -i~ '/address/s/^/#/'
would be a couple of ways, if I understand your question. If you use this and you're not using gnu sed, you'll need to do the redirect/rename dance.
-- Pixellany beat me to it - fancy formatting slows ya down.