<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question search lines in  a file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224862#M82466</link>
    <description>&lt;P&gt;I new in Apache Nifi and I'd like searh a text in the lines of a text file . The lines that match get write in the File.
Is this possible with Apache nifi? &lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:36:33 GMT</pubDate>
    <dc:creator>sandraalvarezal</dc:creator>
    <dc:date>2022-09-16T13:36:33Z</dc:date>
    <item>
      <title>search lines in  a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224862#M82466</link>
      <description>&lt;P&gt;I new in Apache Nifi and I'd like searh a text in the lines of a text file . The lines that match get write in the File.
Is this possible with Apache nifi? &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:36:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224862#M82466</guid>
      <dc:creator>sandraalvarezal</dc:creator>
      <dc:date>2022-09-16T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: search lines in  a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224863#M82467</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/91399/sandraalvarezal.html" nodeid="91399" target="_blank"&gt;@sandra
 Alvarez
&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;RouteText &lt;/STRONG&gt;processor &lt;/P&gt;&lt;PRE&gt;Routes textual data based on a set of user-defined rules. Each line in an incoming FlowFile is compared against the values specified by user-defined Properties. The mechanism by which the text is compared to these user-defined properties is defined by the 'Matching Strategy'. The data is then routed according to these rules, routing each line of the text individually.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Example:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have an input data as follows:&lt;/P&gt;&lt;PRE&gt;nifi hdf
kyjkglhkghfgdsa
hdp jdfdf nifi&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;RouteText configs:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Route text processor having alot of ways to determine Matching Strategy and i'm using contains strategy and added new dynamic property as &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;required&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;nifi&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86613-routetext.png" style="width: 1598px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15463i2C14AC2A9B9A2A36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="86613-routetext.png" alt="86613-routetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the matched relationship from RouteText processor will give&lt;/P&gt;&lt;PRE&gt;nifi hdf
hdp jdfdf nifi&lt;/PRE&gt;&lt;P&gt;Only the above two lines having &lt;STRONG&gt;nifi&lt;/STRONG&gt; in them so processor given results as expected.&lt;/P&gt;&lt;P&gt;Like this way you can choose any of Matching Strategy and add &lt;STRONG&gt;dynamic properties&lt;/STRONG&gt; based on the strategies(i.e match regular expression means your dynamic property will be REGEX).&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:39:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224863#M82467</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T01:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: search lines in  a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224864#M82468</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You answer have been of big help.&lt;/P&gt;&lt;P&gt;
thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 18:57:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/search-lines-in-a-file/m-p/224864#M82468</guid>
      <dc:creator>sandraalvarezal</dc:creator>
      <dc:date>2018-08-21T18:57:42Z</dc:date>
    </item>
  </channel>
</rss>

