How to insert text in multiple lines in vi editor
Jan 25th, 2010 | By Steve Soe | Category: How-To, UnixIn the vi editor, if you want to add the text before some keywords in the multiple lines, you can use this awk script.
For example: I have this file name called “/root/temp” and I want to add the word “sddl” in front of the words “Device: -r”. I wrote my awk script like this:
awk ‘ [...]
