I need help with deleting specific lines
-
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”/> -
@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. -
@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”/>
? -
@JulienSchulz2000 A similar problem - and its solution - is discussed in:
https://community.notepad-plus-plus.org/topic/24686/help-duplicate-files?_=1691569711579