Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 4 down vote accepted

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

:%s/.../.../
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

 
discard

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.