ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm not clear what you want to do. "in front of line 18" could be done with the "i" command. The "and above" is what is confusing me. Do you want to insert the same text before each line up to the 18th line?
Also give more details on your particular problem so we know this isn't a homework problem. I don't want to help you cheat if that were the case.