duplicating lines
-
I want to duplicate this below on notepad++ and make the duplicate to have 1.2.3.2 and 1.2.3.4 and so on until 1.2.3.200
what I have:
goldplate enterprises
attribute solution per class :sub class=1.2.3.1How I want it to appear:
goldplate enterprises
attribute solution per class :sub class=1.2.3.1
goldplate enterprises
attribute solution per class :sub class=1.2.3.2
goldplate enterprises
attribute solution per class :sub class=1.2.3.3and so on…
Is this possible with notepad++ and how can I achieve that. Thank you
-
It is possible. There are a few ways to do it, depending on your exact circumstances. Here is one way:
-
Open a new, empty tab.
-
If you don’t see line numbers at the left, go to Settings | Preferences… | Margins/Border/Edge and check Display in the Line Number box at the top right.
-
Press and hold the Enter key until you have exactly 200 lines.
-
Edit | Select All (or Ctrl+A).
-
Open Edit | Column Editor….
-
Select Number to Insert; set the Format to Dec. the numbers to 1, 1, 1 and Leading to None.
-
Click OK. You should now see the numbers 1 to 200 in your file.
-
The column editor will leave extraneous (for this purpose) blanks after the one and two digit numbers. Use Edit | Blank Operations | Trim Trailing Space to remove them.
-
From your original source, copy the fixed part of the text; that is, everything from “goldplate” to “1.2.3.” including the point but not including the final 1.
-
Go back to tab with the list of numbers from 1 to 200. Click at the very beginning of the list, at the left of the 1. Scroll to the bottom using the mouse (not the keyboard), hold down Shift and Alt, and click at the left of the 200. You should see a thin, blinking line running at the left of all your lines.
-
Paste. You’ll see the text you copied added before each number.
-
You can now Select All, copy, and paste this back into your original file.
-