<?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 ksh replace single qoutes in var. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722528#M655324</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I kind of stuck on easy thing how to apply command I can use from prompt inside my ksh script.&lt;BR /&gt;I need to replace single qoute in my var, &lt;BR /&gt;this work ok from prompt:&lt;BR /&gt;$ echo $mm|tr -d "'"&lt;BR /&gt;.&lt;BR /&gt;but how put this into new var or change existing $mm value inside the script? I know how to do it with file, but d'like to stay with var.&lt;BR /&gt;e.g.&lt;BR /&gt;$ mmm=`echo $mm|tr -d "'"`   # this gaves me an error.&lt;BR /&gt;&lt;BR /&gt;Appreciate you help on this easy for you subject. I check my manuals it's all clear untill hands on sample.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;Tr&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Dec 2010 00:47:00 GMT</pubDate>
    <dc:creator>Trento</dc:creator>
    <dc:date>2010-12-07T00:47:00Z</dc:date>
    <item>
      <title>ksh replace single qoutes in var.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722528#M655324</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I kind of stuck on easy thing how to apply command I can use from prompt inside my ksh script.&lt;BR /&gt;I need to replace single qoute in my var, &lt;BR /&gt;this work ok from prompt:&lt;BR /&gt;$ echo $mm|tr -d "'"&lt;BR /&gt;.&lt;BR /&gt;but how put this into new var or change existing $mm value inside the script? I know how to do it with file, but d'like to stay with var.&lt;BR /&gt;e.g.&lt;BR /&gt;$ mmm=`echo $mm|tr -d "'"`   # this gaves me an error.&lt;BR /&gt;&lt;BR /&gt;Appreciate you help on this easy for you subject. I check my manuals it's all clear untill hands on sample.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;Tr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2010 00:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722528#M655324</guid>
      <dc:creator>Trento</dc:creator>
      <dc:date>2010-12-07T00:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: ksh replace single qoutes in var.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722529#M655325</link>
      <description>How about print ?  Replace echo with print and try.</description>
      <pubDate>Tue, 07 Dec 2010 01:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722529#M655325</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2010-12-07T01:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: ksh replace single qoutes in var.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722530#M655326</link>
      <description>&amp;gt;this gives me an error.&lt;BR /&gt;&lt;BR /&gt;What does $mm have in it?  What error do you have?&lt;BR /&gt;I have no problems with:&lt;BR /&gt;mm2=$(echo $mm | tr -d "'")</description>
      <pubDate>Tue, 07 Dec 2010 08:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722530#M655326</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-07T08:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: ksh replace single qoutes in var.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722531#M655327</link>
      <description>echo $mm&lt;BR /&gt;"This is a test"&lt;BR /&gt;nn=$(echo $mm | tr -d '"')&lt;BR /&gt;echo $nn&lt;BR /&gt;This is a test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is this what you are looking for ?</description>
      <pubDate>Tue, 07 Dec 2010 22:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722531#M655327</guid>
      <dc:creator>Mike Miller_8</dc:creator>
      <dc:date>2010-12-07T22:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: ksh replace single qoutes in var.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722532#M655328</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;So, it appears that the suggestions offered solved your problem, based on point assignment.  In that case, *exactly* what eliminated the error that you were encountering, and what *exactly* was that error?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 08 Dec 2010 12:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722532#M655328</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-12-08T12:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: ksh replace single qoutes in var.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722533#M655329</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] and what *exactly* was that error?&lt;BR /&gt;&lt;BR /&gt;You weren't still hoping for a clear&lt;BR /&gt;statement of the problem, were you?  This&lt;BR /&gt;_is_ the HP-UX forum, isn't it?</description>
      <pubDate>Wed, 08 Dec 2010 13:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-replace-single-qoutes-in-var/m-p/4722533#M655329</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-12-08T13:38:53Z</dc:date>
    </item>
  </channel>
</rss>

