<?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 Re: Replace /N with empty string in CSV File in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237128#M198941</link>
    <description>&lt;P&gt;I was able to solve the problem by using ReplaceText processor below. For &lt;STRONG&gt;Replacement Value&lt;/STRONG&gt;, I hit "tab"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110187-replacetext.png" style="width: 771px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14291i5D01B47A16F7A8F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="110187-replacetext.png" alt="110187-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 23:21:27 GMT</pubDate>
    <dc:creator>aridif</dc:creator>
    <dc:date>2019-08-17T23:21:27Z</dc:date>
    <item>
      <title>Replace /N with empty string in CSV File</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237125#M198938</link>
      <description>&lt;P&gt;I have a CSV file in which nulls are represented by "/N". How can i go about replacing this with an empty string ''. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Year    Age    City    Date&lt;/P&gt;&lt;P&gt;2013    \N      London    \N         &lt;/P&gt;&lt;P&gt;2019    56      \N      \N    &lt;/P&gt;&lt;P&gt;2015    20      \N       12/12/2019&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I would like to replace this, so that the file looks like the below. &lt;/P&gt;&lt;P&gt;Year    Age    City    Date&lt;/P&gt;&lt;P&gt;2013        London                &lt;/P&gt;&lt;P&gt;2019    56            &lt;/P&gt;&lt;P&gt;2015    20        12/12/2019&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Which processors can i use to achieve this and what is the syntax to be used. &lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 04:19:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237125#M198938</guid>
      <dc:creator>aridif</dc:creator>
      <dc:date>2019-08-03T04:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace /N with empty string in CSV File</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237126#M198939</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer nofollow noopener noreferrer" href="http://@FA" target="_blank"&gt;&lt;EM&gt;@FA&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Use a ReplaceText processor which replaces \A\n|\n*\s*(?=\n) with '' (empty replacement value). The search regex looks for:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;\n*\s*(?=\n) - newline (0 or more) followed by whitespace (0 or more) followed by a newline.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110192-1564787672770.png" style="width: 973px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14292iC7B9B6F8DB7BB337/image-size/medium?v=v2&amp;amp;px=400" role="button" title="110192-1564787672770.png" alt="110192-1564787672770.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:21:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237126#M198939</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-08-17T23:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replace /N with empty string in CSV File</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237127#M198940</link>
      <description>&lt;P&gt;The above question and the entire response thread below were originally posted in the &lt;A href="https://community.hortonworks.com/spaces/101/index.html"&gt;Community Help&lt;/A&gt; track. On Sat Aug 3 14:59 UTC 2019, a member of the HCC moderation staff moved it to the &lt;A href="https://community.hortonworks.com/spaces/63/data-flow-track.html"&gt;Data Ingestion &amp;amp; Streaming&lt;/A&gt; track. The &lt;EM&gt;Community Help Track&lt;/EM&gt; is intended for questions about using the HCC site itself.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 22:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237127#M198940</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2019-08-03T22:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace /N with empty string in CSV File</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237128#M198941</link>
      <description>&lt;P&gt;I was able to solve the problem by using ReplaceText processor below. For &lt;STRONG&gt;Replacement Value&lt;/STRONG&gt;, I hit "tab"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110187-replacetext.png" style="width: 771px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14291i5D01B47A16F7A8F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="110187-replacetext.png" alt="110187-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 23:21:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237128#M198941</guid>
      <dc:creator>aridif</dc:creator>
      <dc:date>2019-08-17T23:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace /N with empty string in CSV File</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237129#M198942</link>
      <description>&lt;P&gt;This was helpful&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 05:12:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237129#M198942</guid>
      <dc:creator>aridif</dc:creator>
      <dc:date>2019-08-04T05:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace /N with empty string in CSV File</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237130#M198943</link>
      <description>&lt;P&gt;&lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="http://fa/" target="_blank"&gt;&lt;EM&gt;@FA&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Great that your problem was resolved.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 14:48:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-N-with-empty-string-in-CSV-File/m-p/237130#M198943</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-08-04T14:48:04Z</dc:date>
    </item>
  </channel>
</rss>

