<?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>topic Re: Using sed in tSystem component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-sed-in-tSystem-component/m-p/2299048#M71439</link>
    <description>&lt;P&gt;@thomas letellier​&amp;nbsp;, you no need to use single  quote escpe only for double quote you need ot use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 13:00:28 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-10-12T13:00:28Z</dc:date>
    <item>
      <title>Using sed in tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-sed-in-tSystem-component/m-p/2299047#M71438</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the sed command in a tSystem component but I got some troubles...&lt;/P&gt;&lt;P&gt;Here is the command I'm using in the component :&lt;/P&gt;&lt;P&gt;"sudo sed -i 1s/^\\xEF\\xBB\\xBF//"&amp;nbsp;&amp;nbsp;+ ((String)globalMap.get("tFileList_3_CURRENT_FILEPATH"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I print it I got the good result (this is the resutl of a System.out.println():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudo sed -i 1s/^\xEF\xBB\xBF//  myFile.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sed command seem's correct and is working fine when using manually in linux, but when I try to use it in Talend I got this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sed: -e expression #1, char 19: unknown option to `s'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I was using single quotes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"sudo sed -i '1s/^\\xEF\\xBB\\xBF//'"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it did not work, I also tried to escape thoses single quotes... same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tells me how to write correctly this command on the tSystem component ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 11:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-sed-in-tSystem-component/m-p/2299047#M71438</guid>
      <dc:creator>ThomasLetellier</dc:creator>
      <dc:date>2020-10-12T11:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using sed in tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-sed-in-tSystem-component/m-p/2299048#M71439</link>
      <description>&lt;P&gt;@thomas letellier​&amp;nbsp;, you no need to use single  quote escpe only for double quote you need ot use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 13:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-sed-in-tSystem-component/m-p/2299048#M71439</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-10-12T13:00:28Z</dc:date>
    </item>
  </channel>
</rss>

