:%s/pattern/newchain/
This will substitute the first chain that matches the pattern, if you want to substitute all the chains that match the pattern the correct syntax is:
:%s/pattern/newchain/g
Subscribe to:
Post Comments (Atom)
My blog contains crib sheets about system administration tasks. You will find here some notes about cvs/svn repositories, firewalls, scripting, policies, security. This source of knowledge is very useful for me, I hope you find it useful too.
2 comments:
the real syntax is:
:%s/pattern/newchain/
This will substitute the first chain that matches the pattern, if you want to substitute all the chains that match the pattern the correct syntax is:
:%s/pattern/newchain/g
Eres un melon
thank you i have added your correction to the post ;).
Post a Comment