Community
    • Login

    How to remove first 50 lines on each files using NOTEPAD PLUS

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 681 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.
    • N ON
      N O
      last edited by

      Hello , this is very important to me at least I spend 8 days now trying all kind of things I found using google search to do that and I give up and need help ASAP

      1 - I have thousands of files that I need to remove first 50 line from each file

      2 - I have some files that I need to remove 50 lines from the bottom as well

      3 - How to remove bookmarked lines or NON bookmarked lines from multi files or all current open files ?

      is it possible to add this option to MARK list or the Mark window tap ?

      thanks in advance

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @N O
        last edited by Alan Kilborn

        @N-O

        1 - find: (?-s)(?:.*\R){50}(?s)(.*) / repl: ${1} / mode: regular expression / (note: other ways to do it certainly possible)

        2 - find: (?-s)(.*\R){50}\z / repl: nothing / mode: regular expression / (note: other ways to do it certainly possible)

        3 - not currently possible to do in one action

        (4) - you’d have to ask for it in a feature request; see HERE for a description of the process

        note: 1 and 2 could be written so that it was a single operation accomplishing both – I did not do that

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