I've got some problems with editing a big configuration file .. its about 2k lines long.. anyway what I need is to place certain text to certain line number.. lets say I need to place "Something" on line 980 .. "something" else on line number 1500 and so on without tempering the rest of the configuration file ... I found somewhere this
it seems to work on one occasion but when I want to make another change in the configuration whole thing comes messed up, things appear double and so on ... any help ?
First off this assumes you want to add a line of text so it becomes line #980, #1500
If what you mean is "backwards" from this, ie., becomes 981 and 1500, then put the print $0 at the top of the { } block instead of the bottom. I can't tell what you want.