in reply to Replace specific lines specific range of characters.

govindkailas

You've certainly chosen an odd way to code your solution.

Is there any reason you're invoking perl four times when once would do?

I suggest you convert your code to a simple loop to locate the line, and then perform the substitution.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Replace specific lines specific range of characters.