Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.