<?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 script: how to get the length of a strings in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508421#M728503</link>
    <description>Hi Forumist,&lt;BR /&gt;&lt;BR /&gt;var1="testing", &lt;BR /&gt;&lt;BR /&gt;I need to know the length the the var1.  How can this be achinved ? ie, will return 7&lt;BR /&gt;&lt;BR /&gt;Thank you.  &lt;BR /&gt;</description>
    <pubDate>Thu, 22 Mar 2001 04:17:16 GMT</pubDate>
    <dc:creator>mooi-kuan</dc:creator>
    <dc:date>2001-03-22T04:17:16Z</dc:date>
    <item>
      <title>shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508421#M728503</link>
      <description>Hi Forumist,&lt;BR /&gt;&lt;BR /&gt;var1="testing", &lt;BR /&gt;&lt;BR /&gt;I need to know the length the the var1.  How can this be achinved ? ie, will return 7&lt;BR /&gt;&lt;BR /&gt;Thank you.  &lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2001 04:17:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508421#M728503</guid>
      <dc:creator>mooi-kuan</dc:creator>
      <dc:date>2001-03-22T04:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508422#M728504</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;with awk:&lt;BR /&gt;echo $var1 | awk ' { print length($0) } '&lt;BR /&gt;&lt;BR /&gt;regards, Saa</description>
      <pubDate>Thu, 22 Mar 2001 04:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508422#M728504</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-03-22T04:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508423#M728505</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;In posix shell:&lt;BR /&gt;${#var1}&lt;BR /&gt;&lt;BR /&gt;regards, saa</description>
      <pubDate>Thu, 22 Mar 2001 04:58:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508423#M728505</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-03-22T04:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508424#M728506</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;In posix shell:&lt;BR /&gt;${#var1}&lt;BR /&gt;&lt;BR /&gt;regards, saa</description>
      <pubDate>Thu, 22 Mar 2001 04:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508424#M728506</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-03-22T04:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508425#M728507</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;In posix shell:&lt;BR /&gt;${#var1}&lt;BR /&gt;&lt;BR /&gt;regards, saa</description>
      <pubDate>Thu, 22 Mar 2001 04:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508425#M728507</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-03-22T04:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508426#M728508</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;In posix shell:&lt;BR /&gt;${#var1}&lt;BR /&gt;&lt;BR /&gt;regards, saa</description>
      <pubDate>Thu, 22 Mar 2001 04:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508426#M728508</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-03-22T04:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508427#M728509</link>
      <description>Sorry for many answer, but I get back Java error....&lt;BR /&gt;&lt;BR /&gt;Saa</description>
      <pubDate>Thu, 22 Mar 2001 05:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508427#M728509</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-03-22T05:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508428#M728510</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Alternatively,&lt;BR /&gt;&lt;BR /&gt;# echo $var | wc -c&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 22 Mar 2001 08:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508428#M728510</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-03-22T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: shell script: how to get the length of a strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508429#M728511</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can use 'expr' as:&lt;BR /&gt;&lt;BR /&gt;# V=testing&lt;BR /&gt;# expr length $V&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 22 Mar 2001 12:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-how-to-get-the-length-of-a-strings/m-p/2508429#M728511</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-03-22T12:45:01Z</dc:date>
    </item>
  </channel>
</rss>

