@mallikarjuna-navuluri said in replace values with incrementing by1:
example i want to replace first line with 5000001, secondline with 5000001
third line with 5000003…10k line will be 5010000.
There is a menu option in Notepad++ to insert into a set position on each line a number. This number (or text) can be static or if a number can be incremented by another number, in your case 1.
So look at the Edit Menu, then Column Editor. Use the “Number to Insert” option and start with the first number you want and have the increment as 1. Since the start and end numbers in your post are the same length you don’t need to include leading zeros.
If you have the cursor in the very first position of your file and start this column editor function every line in the file will have a number at the start of the line. You may want to use the “insert text” first so you have a space between the numbers but not necessary as the number you are inserting is one set length.
Then you’d cut that number and insert it further along in the line.
Again, I’ll repeat my request. You need to supply more examples and use the black box surrounding the examples to prevent any characters being altered by the posting engine. So perhaps 3-4 lines gathered together and perhaps another 3-4 further along in the file showing a latter part of it so we get a good idea of what the original data looks like.
Terry