Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having issues with sed/vim using the s/replace this/with this command.

Here are some screenshots to show the issue.

enter image description here

enter image description here

How do I match this string and replace it with what I want?

share|improve this question
up vote 4 down vote accepted

You forgot to give a range. Otherwise, it only processes the current line.

share|improve this answer
I knew it was something simple, thanks! Will accept once the time limit is up. – Chris Wagner Aug 21 '12 at 18:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.