insert 2 new lines

Chad
2013-01-08
2013-01-10
  • Chad

    Chad - 2013-01-08

    I have nearly 9,000 lines in a text file in Notepad++

    How do I find all lines that say

    source: DATA

    and INSERT these 2 lines below that line?

    delete:
    password: ACTUALPASSWORD

    Thanks.

     
    Last edit: Chad 2013-01-08
  • Loreia2

    Loreia2 - 2013-01-10

    Hi Chad,

    is "source: DATA" the only text on the line?

    Simplest solution would be:
    Find: source: DATA
    Replace: source: DATA\r\ndelete:\r\npassword: ACTUALPASSWORD

    And select Extended search mode.

    BR,
    Loreia