I got a file with 1000 lines and I need to replace let’s say first 500 lines with any another number – for example 0, and next 500 lines with number that is in this line + 1
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the first of the lines you want to replace, you can do:
And then:
Input the text you want to place in the 500 lines, follow with enter and exit edit mode. Voila!
If you want to increment numbers written in multiple lines, you could use a macro.
Try: