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
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