<?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 shell string parsing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694795#M842999</link>
    <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have the following entry:&lt;BR /&gt;0x016000&lt;BR /&gt;&lt;BR /&gt;What is easiest way to retrieve, for example, 3rd, 4th and 5th component?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
    <pubDate>Mon, 01 Apr 2002 19:52:21 GMT</pubDate>
    <dc:creator>andi_1</dc:creator>
    <dc:date>2002-04-01T19:52:21Z</dc:date>
    <item>
      <title>shell string parsing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694795#M842999</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have the following entry:&lt;BR /&gt;0x016000&lt;BR /&gt;&lt;BR /&gt;What is easiest way to retrieve, for example, 3rd, 4th and 5th component?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Mon, 01 Apr 2002 19:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694795#M842999</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-04-01T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: shell string parsing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694796#M843000</link>
      <description>chr4=`echo "0x016000" | cut -c 4`&lt;BR /&gt;&lt;BR /&gt;Will put the 4th character into env variable chr4.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 01 Apr 2002 19:56:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694796#M843000</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-04-01T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: shell string parsing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694797#M843001</link>
      <description>..easiest way .. probably use cut ..&lt;BR /&gt;&lt;BR /&gt;# echo 0x016000 | cut -c 3,4,5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Apr 2002 19:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694797#M843001</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-01T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: shell string parsing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694798#M843002</link>
      <description>Hi Leon,&lt;BR /&gt;&lt;BR /&gt;As mentioned by others cut works well for your need:&lt;BR /&gt;&lt;BR /&gt;HOSTA:/tmp:&amp;gt; cat test&lt;BR /&gt;0x016000&lt;BR /&gt;&lt;BR /&gt;HOSTA:/tmp:&amp;gt; cut -c3-5 test&lt;BR /&gt;016&lt;BR /&gt;&lt;BR /&gt;-Shabu</description>
      <pubDate>Mon, 01 Apr 2002 20:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-parsing/m-p/2694798#M843002</guid>
      <dc:creator>SHABU KHAN</dc:creator>
      <dc:date>2002-04-01T20:12:19Z</dc:date>
    </item>
  </channel>
</rss>

