• Login
Community
  • Login

I need help with deleting specific lines

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 4 Posters 373 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.
  • J
    JulienSchulz2000
    last edited by Aug 8, 2023, 4:36 PM

    How can I delete all the duplicate lines with the same person (person/“id”) in there.
    Having duplicate pictures (like SpanMed1418) is not a problem.
    I just cant figure it out.
    Many thanks in advance.

    <record from=“Central European/Central European2769” to=“graphics/pictures/person/2002301095/portrait”/>
    <record from=“SpanMed/SpanMed3162” to=“graphics/pictures/person/2002426795/portrait”/>
    <record from=“South American/South American909” to=“graphics/pictures/person/2002312612/portrait”/>
    <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002426795/portrait”/>
    <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002605289/portrait”/>
    <record from=“African/African1904” to=“graphics/pictures/person/2002426795/portrait”/>
    <record from=“Central European/Central European12880” to=“graphics/pictures/person/2002587993/portrait”/>

    V P P 3 Replies Last reply Aug 8, 2023, 8:28 PM Reply Quote 0
    • V
      Victorel Petrovich @JulienSchulz2000
      last edited by Aug 8, 2023, 8:28 PM

      @JulienSchulz2000
      This sounds like a search and replace using regex problem.
      Defining a bit better the problem (for ex, duplicate sounds like “identical” to me) and showing what have you tried, where you got stuck - will make it more likely - though not certain - you’ll get some help.

      1 Reply Last reply Reply Quote 0
      • P
        Pierre Åberg @JulienSchulz2000
        last edited by Aug 9, 2023, 6:30 AM

        @JulienSchulz2000
        Just to make things clear
        This is the before data:
        <record from=“Central European/Central European2769” to=“graphics/pictures/person/2002301095/portrait”/>
        <record from=“SpanMed/SpanMed3162” to=“graphics/pictures/person/2002426795/portrait”/>
        <record from=“South American/South American909” to=“graphics/pictures/person/2002312612/portrait”/>
        <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002426795/portrait”/>
        <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002605289/portrait”/>
        <record from=“African/African1904” to=“graphics/pictures/person/2002426795/portrait”/>
        <record from=“Central European/Central European12880” to=“graphics/pictures/person/2002587993/portrait”/>

        And this is what you want the after data to be:
        <record from=“Central European/Central European2769” to=“graphics/pictures/person/2002301095/portrait”/>
        <record from=“South American/South American909” to=“graphics/pictures/person/2002312612/portrait”/>
        <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002605289/portrait”/>
        <record from=“Central European/Central European12880” to=“graphics/pictures/person/2002587993/portrait”/>
        ?

        1 Reply Last reply Reply Quote 1
        • P
          Paul Wormer @JulienSchulz2000
          last edited by Paul Wormer Aug 9, 2023, 8:41 AM Aug 9, 2023, 8:38 AM

          @JulienSchulz2000 A similar problem - and its solution - is discussed in:
          https://community.notepad-plus-plus.org/topic/24686/help-duplicate-files?_=1691569711579

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