<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Text Files on MarkJacobsen.net</title><link>https://markjacobsen.net/tags/text-files/</link><description>Recent content in Text Files on MarkJacobsen.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 02 Apr 2015 18:31:00 +0000</lastBuildDate><atom:link href="https://markjacobsen.net/tags/text-files/index.xml" rel="self" type="application/rss+xml"/><item><title>Remove Duplicate Lines in Notepad++</title><link>https://markjacobsen.net/2015/04/remove-duplicate-lines-in-notepad/</link><pubDate>Thu, 02 Apr 2015 18:31:00 +0000</pubDate><guid>https://markjacobsen.net/2015/04/remove-duplicate-lines-in-notepad/</guid><description>&lt;p&gt;If you’ve ever had the need to remove the duplicate lines from a long list of entries like so…&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hi
bye
hi
guy
bye
hi
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;… and are looking for this…&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hi
bye
guy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can use the find/replace feature in Notepad++ to do it if you use the regex funcationality. Here’s the find string…&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;^(.*?)$\s+?^(?=.*^\1$)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Just replace with a zero length string.&lt;/p&gt;
&lt;p&gt;If you’d like to read up on the details I &lt;a href="http://stackoverflow.com/questions/3958350/removing-duplicate-rows-in-notepad" target="_blank"&gt;found this tip here&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>