<?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[leave each Nth line, if contains ....  (in script)]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I have a file like this:</p>
<p dir="auto">AAAAA<br />
BBBBB - 11111<br />
BBBBB - 22222<br />
BBBBB - 33333<br />
CCCCC<br />
BBBBB - 44444<br />
BBBBB - 55555<br />
BBBBB - 66666<br />
BBBBB - 77777<br />
BBBBB - 88888<br />
BBBBB - 99999<br />
BBBBB - 00000<br />
BBBBB  - AAAA</p>
<p dir="auto"><strong>first request</strong> - i would like to work only on the lines that contain BBBBB  and leave every 5th line of them<br />
<strong>second request</strong> -  i would like to delete all lines that contain a specific string</p>
<p dir="auto">I need these to run in a script</p>
<p dir="auto">many thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14900/leave-each-nth-line-if-contains-in-script</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 00:33:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14900.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Dec 2017 09:33:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to leave each Nth line, if contains ....  (in script) on Sun, 10 Dec 2017 17:12:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gonen-shoham" aria-label="Profile: Gonen-Shoham">@<bdi>Gonen-Shoham</bdi></a></p>
<p dir="auto">in addition to what Guy already mentioned, it would be good to know what kind of<br />
scripting language you are thinking of.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/28577</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/28577</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Sun, 10 Dec 2017 17:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to leave each Nth line, if contains ....  (in script) on Sun, 10 Dec 2017 11:39:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/gonen-shoham" aria-label="Profile: gonen-shoham">@<bdi>gonen-shoham</bdi></a>,</p>
<p dir="auto">I understood that you’re interested on lines containing the string <strong>BBBBB</strong> only, and, also, that you would like to <strong>delete</strong> lines with a <strong>specific</strong> string. But, as English is not my <strong>native</strong> language, I’m still wondering about the expression <strong><code>leave every 5th line of them</code></strong> !</p>
<p dir="auto">May be, you could show us from your <strong>initial</strong> text, or other text, what is the <strong>exact</strong> text that you expect to ?</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/28569</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/28569</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 10 Dec 2017 11:39:01 GMT</pubDate></item></channel></rss>