<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tail with filter]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">is there an option to use tail with a filter? So only lines with a specific text will appear in the result.</p>
<p dir="auto">BR<br />
Franz</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26851/tail-with-filter</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 00:20:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26851.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 May 2025 08:58:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tail with filter on Wed, 07 May 2025 14:06:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/franz" aria-label="Profile: Franz">@<bdi>Franz</bdi></a> ,</p>
<p dir="auto">Natively, no.  Notepad++ doesn’t have a “filter” feature that just hides text without deleting it.</p>
<p dir="auto">There might be some plugins that do a “filter”-like feature, but I don’t know which they are, and it would be doubtful if they’d work correctly with the <strong>Monitor (tail -f)</strong> feature of Notepad++.  If someone else knows of a way, they can chime in.</p>
<p dir="auto">As a workaround: assuming you have the <code>logfile.log</code> open as the current file (doesn’t need to be in “tail” mode, but it can be): <strong>Run &gt; Run…</strong></p>
<pre><code>powershell -command "Get-Date -Format 'MM/dd/yyyy' &gt;&gt; '$(CURRENT_DIRECTORY)\filtered.log' ; Get-Content -Path '$(FULL_CURRENT_PATH)' -Wait | Select-String -pattern '^[AEOIU].*$' &gt;&gt; '$(CURRENT_DIRECTORY)\filtered.log';"
</code></pre>
<p dir="auto">and then <strong>File &gt; Open</strong> <code>filtered.log</code>, and set <strong>Monitor (tail -f)</strong>.</p>
<p dir="auto">This example filters your original <code>logfile.log</code> for any line in that starts with a vowel, and pipes it into <code>filtered.log</code> in the same directory; when you then open <code>filtered.log</code> in tail-mode, only the text that matches the filter will make it into <code>filtered.log</code> , which you are watching as it goes, so it gives you the basic effect, even though Notpead++ doesn’t do it natively.</p>
<p dir="auto">If you want something other than “starts with a vowel”, change the <code>'^[AEOIU].*$'</code> from the command I gave to a valid <a href="https://ss64.com/ps/syntax-regex.html" rel="nofollow ugc">powershell regular expression</a> (make sure to keep it wrapped in <em>single</em> quotes, like the example regex was).  (In this forum, we’re good at Notepad++ regular expressions; but powershell regex are not our area of expertise, so, if you need help with the powershell regex aspect, this forum probably isn’t the best place to ask)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/101524</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/101524</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 07 May 2025 14:06:30 GMT</pubDate></item></channel></rss>