<?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: Shell String variable maximum Length in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044963#M135136</link>
    <description>Hi,&lt;BR /&gt;I can only achieve 255, and that is including variable name and equal sign - but one does not make a big difference to me.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
    <pubDate>Fri, 08 Aug 2003 11:30:31 GMT</pubDate>
    <dc:creator>john korterman</dc:creator>
    <dc:date>2003-08-08T11:30:31Z</dc:date>
    <item>
      <title>Shell String variable maximum Length</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044961#M135134</link>
      <description>Hi,&lt;BR /&gt;   I would like to know is there any maximum length for a string variable in POSIX shell. I am not sure howmany characters are my query going to return to the variable.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shaji</description>
      <pubDate>Fri, 08 Aug 2003 11:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044961#M135134</guid>
      <dc:creator>Shaji Nair_1</dc:creator>
      <dc:date>2003-08-08T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shell String variable maximum Length</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044962#M135135</link>
      <description>Excellent reason to switch to perl. &lt;BR /&gt;&lt;BR /&gt;length is 256.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;read linestuff&lt;BR /&gt;echo "--------------------------------------------------"&lt;BR /&gt;dummy=${#linestuff}&lt;BR /&gt;echo length is $dummy&lt;BR /&gt;echo "--------------------------------------------------"&lt;BR /&gt;echo $linestuff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 08 Aug 2003 11:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044962#M135135</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2003-08-08T11:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell String variable maximum Length</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044963#M135136</link>
      <description>Hi,&lt;BR /&gt;I can only achieve 255, and that is including variable name and equal sign - but one does not make a big difference to me.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Fri, 08 Aug 2003 11:30:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044963#M135136</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-08-08T11:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shell String variable maximum Length</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044964#M135137</link>
      <description>For C shell, it's up to 1024!&lt;BR /&gt;&lt;BR /&gt;-ux</description>
      <pubDate>Fri, 08 Aug 2003 11:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044964#M135137</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-08-08T11:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Shell String variable maximum Length</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044965#M135138</link>
      <description>if your wondering about the length of the variable name, ie thisreallylongvariablename is 26 characters in length and as previously pointed out has a practial limit that is a bit less then 256 characters.&lt;BR /&gt;&lt;BR /&gt;if your wondering about the string lenght of a a variable, ie a="abcdef", the string length of a (${#a}) is 6 characters.&lt;BR /&gt;&lt;BR /&gt;my testing with&lt;BR /&gt;read var &lt;BR /&gt;the shell on my old desktop system running 11.0 runs into memory problems when the file/string is &amp;gt;5M</description>
      <pubDate>Fri, 08 Aug 2003 13:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044965#M135138</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-08-08T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell String variable maximum Length</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044966#M135139</link>
      <description>Yes, perl is one option and i am going to port the script in perl. I am porting a old shell script to work with a new product and i was wondering why the old script is creating lots of temporary files when i can take everything onto a variable (I was thinking in perl). Now i know why they are creating lots of temporary files to capture the output of the command. Thanks for all you help. I have decided to keep it as it is and will port it to perl.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shaji</description>
      <pubDate>Fri, 08 Aug 2003 14:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-string-variable-maximum-length/m-p/3044966#M135139</guid>
      <dc:creator>Shaji Nair_1</dc:creator>
      <dc:date>2003-08-08T14:16:09Z</dc:date>
    </item>
  </channel>
</rss>

