<?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 I know what you asked for... but this is what you really need in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-escape-special-characters-out-of-a-flowfile/m-p/304472#M222049</link>
    <description>&lt;P&gt;In this case the problem isn't escaping the special characters in the middle of the flowfile, instead an efficient use of the ReplaceText processor was needed.&amp;nbsp; As it turns out the only real need was to add a comma after the last '}' of every line except the last.&amp;nbsp; ReplaceText handles this nicely and gives me the opportunity to inspect the objects line-by-line instead of the entire text.&amp;nbsp; This is accomplished with setting the&amp;nbsp;&lt;STRONG&gt;Search Value:&lt;/STRONG&gt; &lt;STRONG&gt;}$&lt;/STRONG&gt; (this means find a } but only if it's at the end of the line) and then setting the&amp;nbsp;&lt;STRONG&gt;Replacement Value: },&amp;nbsp;&lt;/STRONG&gt;replacing the } character with another but appending a comma to the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By inspecting line by line it also reduces resources required.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kilynn_0-1602947459753.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29135i78BCEDBD235273B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kilynn_0-1602947459753.png" alt="Kilynn_0-1602947459753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Oct 2020 15:11:12 GMT</pubDate>
    <dc:creator>Kilynn</dc:creator>
    <dc:date>2020-10-17T15:11:12Z</dc:date>
    <item>
      <title>How to escape special characters out of a flowfile?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-escape-special-characters-out-of-a-flowfile/m-p/304467#M222047</link>
      <description>&lt;P&gt;I have flowfile entries like the following:&lt;/P&gt;&lt;P&gt;{\"CommandLine\":\"/bin/sh -c ( LC_MESSAGES=C;export LC_MESSAGES;df -k | awk 'NF == 1 &lt;STRONG&gt;{ printf $0; next } { print }' )&lt;/STRONG&gt; &amp;gt; /opt/netiq/netiq/AM/tmp/netiqKykswU\",\"ConfigBuild\":\"1007.8.0010402.9\",\"ConfigStateHash\":\"788983332\",\"Entitlements\":\"15\",\"GID\":\"0\",\"ImageFileName\":\"/usr/bin/bash\",\"MD5HashData\":\"0883bc66ffeba0e89ee0a753ddbc1950\",\"NDRoot\":\"313466589192688920\",\"ParentBaseFileName\":\"agent\",\"ParentProcessId\":\"313467877387179481\",\"ProcessEndTime\":\"1602877133.023\",\"ProcessGroupId\":\"313466594618021306\",\"ProcessStartTime\":\"1602877133.016\",\"RGID\":\"0\",\"RUID\":\"1420\",\"RawProcessId\":\"52404\",\"SHA1HashData\":\"0000000000000000000000000000000000000000\",\"SHA256HashData\":\"c1c73170d33c0319a795bb05b1dbe7884b7582ec9f696d8a795e0ce692cb714e\",\"SVGID\":\"0\",\"SVUID\":\"1420\",\"SessionProcessId\":\"313467877387179481\",\"SourceProcessId\":\"313467877387179481\",\"SourceThreadId\":\"0\",\"TargetProcessId\":\"317237720018782501\",\"UID\":\"1420\",\"aid\":\"5b13c4513710431846be50a7840630aa\",\"aip\":\"164.95.95.156\",\"cid\":\"dbd8aea753b140cfa86a0e4d85d2dbb0\",\"event_platform\":\"Lin\",\"event_simpleName\":\"ProcessRollup2\",\"id\":\"39244150-0fe7-11eb-ba54-0a51f8dd8adc\",\"name\":\"ProcessRollup2LinV6\",\"timestamp\":\"1602877133547\",\"ComputerName\":\"testdata\"}"}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The highlighted section demonstrates a portion that has special characters that are not escaped.&amp;nbsp; This is causing problems downstream.&amp;nbsp; How do I escape those characters without double escaping others that are OR escaping the FIRST { or the LAST }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:24:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-escape-special-characters-out-of-a-flowfile/m-p/304467#M222047</guid>
      <dc:creator>Kilynn</dc:creator>
      <dc:date>2026-04-21T11:24:27Z</dc:date>
    </item>
    <item>
      <title>I know what you asked for... but this is what you really need</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-escape-special-characters-out-of-a-flowfile/m-p/304472#M222049</link>
      <description>&lt;P&gt;In this case the problem isn't escaping the special characters in the middle of the flowfile, instead an efficient use of the ReplaceText processor was needed.&amp;nbsp; As it turns out the only real need was to add a comma after the last '}' of every line except the last.&amp;nbsp; ReplaceText handles this nicely and gives me the opportunity to inspect the objects line-by-line instead of the entire text.&amp;nbsp; This is accomplished with setting the&amp;nbsp;&lt;STRONG&gt;Search Value:&lt;/STRONG&gt; &lt;STRONG&gt;}$&lt;/STRONG&gt; (this means find a } but only if it's at the end of the line) and then setting the&amp;nbsp;&lt;STRONG&gt;Replacement Value: },&amp;nbsp;&lt;/STRONG&gt;replacing the } character with another but appending a comma to the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By inspecting line by line it also reduces resources required.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kilynn_0-1602947459753.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29135i78BCEDBD235273B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kilynn_0-1602947459753.png" alt="Kilynn_0-1602947459753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 15:11:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-escape-special-characters-out-of-a-flowfile/m-p/304472#M222049</guid>
      <dc:creator>Kilynn</dc:creator>
      <dc:date>2020-10-17T15:11:12Z</dc:date>
    </item>
  </channel>
</rss>

