use vi editor to insert newline char in replace
April 28, 2009 2 Comments
Something else I have to do and cannot remember and then have to look up.
In vi to insert a newline character in a search and replace, do the following:
the command above would replace all instances of “look_for” with “replace_with\n” (with \n meaning newline)
to get the “^M”, enter the key combination “ctl-V” then after that (release all keys) press the “enter” key.