Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    What's the logic behind 1/2, 4, 5, 7/8? You chose them randomly? If you want to script it, it implies you want to automate some larger job, but you haven't given me a feel for what the true problem is. Commented Feb 10, 2021 at 7:13
  • it is a bit complex to explain why I selected those, let's just say it random because I will have another pair of files and there the line numbers I will need to replace it is going to be different so I need a code where you input the line numbers that you want to substitute in the first file and the line numbers of the second file Commented Feb 10, 2021 at 7:19
  • so I just modify the same code where I input different values of line numbers every time Commented Feb 10, 2021 at 7:20
  • it would be good to have also two different files where the values of the line numbers are stored perhaps Commented Feb 10, 2021 at 7:56