Server Fault is a question and answer site for system and network administrators. 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 often, when parsing log/error files, need to replace < and < and > with > in order to be able to efficiently understand what's going on in the files. I know TextWrangler has a macro ability but I can't figure out a efficient way to do this.

Since I have to do it so often I'd love to just have a simple keybinding or menu item to do this simple replace/find all for me.

Anyone know how to do this? ^_^

share|improve this question
up vote 1 down vote accepted

Install VIM then you can use :%s/a/b/g to replace all 'a' with 'b'.

You can use MacVim or Cream if the learning curve in the console version is too scary.

You can then alias your substitution then just fire it with a hotkey.

share|improve this answer

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.