Community
    • Login

    how to remove repeated lines created from hex please help

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.6k Views 3 Watching
    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.
    • Dahaka pD Offline
      Dahaka p
      last edited by

      Hi ,
      i have a text file full of lines created from hex (0123456789ABCDEF) and most of them are repeated , please help me clean repeated lines , here you’re an example for lines :

      821F1B543D06
      0881DFE8AAF9
      F7A9D3FCE4F0
      F11B1FD26E16
      905C554E9C4C
      57A551721240
      3B9ADD2C0696
      0691786FEBA3
      9C9A0AF7B83E
      E6F333FA6E0D
      821F1B543D06
      0881DFE8AAF9
      F7A9D3FCE4F0
      F11B1FD26E16
      905C554E9C4C
      57A551721240
      3B9ADD2C0696
      0691786FEBA3
      9C9A0AF7B83E
      E6F333FA6E0D

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • MAPJe71M Offline
        MAPJe71
        last edited by

        1. sort lines
        2. do a search/replace with
          Find what: ^([0-9A-F]+)\R\1
          Replace with: \1
          Wrap around: checked (other marks unchecked)
          Search mode: Regular expression
        Dahaka pD 1 Reply Last reply Reply Quote 0
        • Scott SumnerS Offline
          Scott Sumner @Dahaka p
          last edited by

          @Dahaka-p

          Seriously? Did you even try to search anywhere for this before posting? This is a FAQ, and in fact, if you just look back a few postings in time you will find a possible answer to your question, not to mention searching this site or asking Google…

          Imgur

          1 Reply Last reply Reply Quote 2
          • Dahaka pD Offline
            Dahaka p @MAPJe71
            last edited by

            @MAPJe71
            Thank you very much , am testing now .

            @ Scott Sumner
            I did several searches at google but not point me to here , i didn’t search here but next time i’ll do , Thanks for the screen shoot .

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors