<?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: How to make substring without using a function? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989877#M124113</link>
    <description>I suppose it depends on what you're trying in, but at a normal shell prompt;&lt;BR /&gt;&lt;BR /&gt;str1="WindowsIsVeryHard"&lt;BR /&gt;str2="WindowsIsVery"&lt;BR /&gt;&lt;BR /&gt;str3=`echo $str1 | sed -e s/$str2//g`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo $str3&lt;BR /&gt;Hard&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Thu, 05 Jun 2003 13:28:19 GMT</pubDate>
    <dc:creator>Chris Wilshaw</dc:creator>
    <dc:date>2003-06-05T13:28:19Z</dc:date>
    <item>
      <title>How to make substring without using a function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989876#M124112</link>
      <description>For example:&lt;BR /&gt;str1="WindowsIsVeryHard"&lt;BR /&gt;str2="WindowsIsVery"&lt;BR /&gt;I want to make str3=$str1-$str2,that's "Hard"!&lt;BR /&gt;How to do?&lt;BR /&gt;Thanks a lot!</description>
      <pubDate>Thu, 05 Jun 2003 13:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989876#M124112</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-06-05T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring without using a function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989877#M124113</link>
      <description>I suppose it depends on what you're trying in, but at a normal shell prompt;&lt;BR /&gt;&lt;BR /&gt;str1="WindowsIsVeryHard"&lt;BR /&gt;str2="WindowsIsVery"&lt;BR /&gt;&lt;BR /&gt;str3=`echo $str1 | sed -e s/$str2//g`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo $str3&lt;BR /&gt;Hard&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 05 Jun 2003 13:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989877#M124113</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2003-06-05T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring without using a function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989878#M124114</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;hp&amp;gt; A=abc&lt;BR /&gt;hp&amp;gt; B=ab&lt;BR /&gt;hp&amp;gt; echo ${A##$B}&lt;BR /&gt;c&lt;BR /&gt;&lt;BR /&gt;See man sh-possix for more details.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 05 Jun 2003 13:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989878#M124114</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-06-05T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring without using a function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989879#M124115</link>
      <description>Hi,&lt;BR /&gt;in korn shell you can do this, but it is hard to tell whether or not it is a function:&lt;BR /&gt;# str1="WindowsIsVeryHard" &lt;BR /&gt;# str2="WindowsIsVery" &lt;BR /&gt;#  echo ${str1##$str2}&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 05 Jun 2003 13:40:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989879#M124115</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-06-05T13:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make substring without using a function?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989880#M124116</link>
      <description>Thank you all!&lt;BR /&gt;To Chris: Very sorry I give 10 points to all but it's strange that you only get 5 ...&lt;BR /&gt;Thank you for you help anyway!</description>
      <pubDate>Thu, 05 Jun 2003 23:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-make-substring-without-using-a-function/m-p/2989880#M124116</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-06-05T23:56:48Z</dc:date>
    </item>
  </channel>
</rss>

