Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Delete lines in multiple text/DAT files that contain specific characters

    Help wanted · · · – – – · · ·
    2
    3
    77
    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.
    • Adam Bowsky
      Adam Bowsky last edited by

      Re: Delete lines in multiple text/DAT files that contain specific characters

      Hello,

      I have been using this process since you were kind enough to help me, and just notices that I am running into a problem with this expression: \r\n\s+\d{1,4}N90-.*\s+00000000$. in addition to deleting the line that has the N90- with a , it is also deleting the line above it. For example, the line above was deleted in addition to the line that I wanted to delete. This is happening on every file where N90- is present. Do you have any idea why this is happening?

            10DTP-1040K           00000000  This should not have been deleted, but was.
            10N90-SS7784X         00000000 This was deleted correctly.
      
      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Adam Bowsky last edited by

        @Adam-Bowsky

        Is there any great reason you’ve posted the exact same thing THREE times?

        Adam Bowsky 1 Reply Last reply Reply Quote 0
        • Adam Bowsky
          Adam Bowsky @Alan Kilborn last edited by

          @Alan-Kilborn Apologies… I am not experienced with this.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors