how to remove repeated lines created from hex please help



  • 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



    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

    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



  • @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 .


Log in to reply