Community

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

    how to remove repeated lines created from hex please help

    Help wanted · · · – – – · · ·
    3
    4
    1160
    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 p
      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 Sumner 1 Reply Last reply Reply Quote 0
      • MAPJe71
        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 p 1 Reply Last reply Reply Quote 0
        • Scott Sumner
          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 p
            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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors