Technology – Wordpress – Free Wordpress Themes


Archive for January 2010

How to insert text in multiple lines in vi editor

Jan 25th, 2010 | By Steve Soe | Category: How-To, Unix

In 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 ‘ [...]