Community
    • Login

    duplicating lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 31 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Doreen AmmonsD
      Doreen Ammons
      last edited by

      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.1

      How 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.3

      and so on…

      Is this possible with notepad++ and how can I achieve that. Thank you

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC
        Coises @Doreen Ammons
        last edited by

        @Doreen-Ammons

        It is possible. There are a few ways to do it, depending on your exact circumstances. Here is one way:

        1. Open a new, empty tab.

        2. 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.

        3. Press and hold the Enter key until you have exactly 200 lines.

        4. Edit | Select All (or Ctrl+A).

        5. Open Edit | Column Editor….

        6. Select Number to Insert; set the Format to Dec. the numbers to 1, 1, 1 and Leading to None.

        7. Click OK. You should now see the numbers 1 to 200 in your file.

        8. 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.

        9. 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.

        10. 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.

        11. Paste. You’ll see the text you copied added before each number.

        12. You can now Select All, copy, and paste this back into your original file.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors