Posts Tagged ‘find and replace’

Vi Find and Replace Example

Friday, July 24th, 2009

Here is an example of find and replace with VI, this will replace every instance of the “findthistext” string in the file with “replacewithtext”. Neat saves lots of typing!

:%s/findthistext/replacewithtext/g