Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
vi : insert a string every 2nd line
Name: ted08 Date: November 18, 2008 at 07:41:23 Pacific OS: solaris 5.10 CPU/Ram: 4 core 32G Product: T2000
Comment:
Hi,
I have a file in vi which looks something like this:
Summary: Hi Folks, Is there a way to insert a string of text in a database list by first locating a specific word and then inserting (or appending) a string every 3rd line after it. I've tried it with sed with...
Summary: Hi folks, Using sed and/or awk, how would I insert a text string (from a korn script) after a string that's at the end of a file. I'm having trouble creating a newline and inserting the text string a...
Summary: Is there a pattern to where you place the delimiters? For example, insert a delimiter at position 4 and then insert a delimiter every 2 characters. There are sed examples that insert commas into larg...