global replace in vi
nice bit of information , although who uses vi any more ? gvim, nedit maybe.
# : / $ s /(search for this)/( replace with this) / g
# : / $ s /(search for this)/( replace with this) / g
A blog that takes its roots from simply how to do something. It is good practice to write down the things that we do as sysadmins, because we all forget from time to time and it is nice to have a quick reference
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home