<?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 Tru64 shell script in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710413#M4014</link>
    <description>Hello to everybody !!!&lt;BR /&gt;I'm making a shell script and I have de difficult.&lt;BR /&gt;&lt;BR /&gt;In a case statement I used:&lt;BR /&gt;&lt;BR /&gt;case $REPLY in &lt;BR /&gt;&lt;BR /&gt; [1-$var] )      list ;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so, when $var is greater than 9 then patter [1-$var] ) is not replace how I like.&lt;BR /&gt;&lt;BR /&gt;for example when $var=12&lt;BR /&gt;&lt;BR /&gt;[1-12] )  patter is how  [1-1] )&lt;BR /&gt;&lt;BR /&gt;helme please&lt;BR /&gt;</description>
    <pubDate>Mon, 16 Jan 2006 16:24:23 GMT</pubDate>
    <dc:creator>Dafnis Tejera</dc:creator>
    <dc:date>2006-01-16T16:24:23Z</dc:date>
    <item>
      <title>Tru64 shell script</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710413#M4014</link>
      <description>Hello to everybody !!!&lt;BR /&gt;I'm making a shell script and I have de difficult.&lt;BR /&gt;&lt;BR /&gt;In a case statement I used:&lt;BR /&gt;&lt;BR /&gt;case $REPLY in &lt;BR /&gt;&lt;BR /&gt; [1-$var] )      list ;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so, when $var is greater than 9 then patter [1-$var] ) is not replace how I like.&lt;BR /&gt;&lt;BR /&gt;for example when $var=12&lt;BR /&gt;&lt;BR /&gt;[1-12] )  patter is how  [1-1] )&lt;BR /&gt;&lt;BR /&gt;helme please&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2006 16:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710413#M4014</guid>
      <dc:creator>Dafnis Tejera</dc:creator>
      <dc:date>2006-01-16T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tru64 shell script</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710414#M4015</link>
      <description>The range goes between 0 and 9, so, if you want to test a two digit number, you need something like:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[0-$var] ) list ;;&lt;BR /&gt;&lt;BR /&gt;[0-9][0-$var] ) list ;;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2006 16:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710414#M4015</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-16T16:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tru64 shell script</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710415#M4016</link>
      <description>In fact, the above is wrong, it should be:&lt;BR /&gt;&lt;BR /&gt;[0-$var] ) list ;;&lt;BR /&gt;&lt;BR /&gt;[0-9][0-9] ) list ;;&lt;BR /&gt;&lt;BR /&gt;Anyway, you can use:&lt;BR /&gt;&lt;BR /&gt;if [ $REPLY -ge 1 ] &amp;amp;&amp;amp; [ $REPLY -le $var ]; then&lt;BR /&gt;  echo "The value is in the range 1-12"&lt;BR /&gt;  list&lt;BR /&gt;fi</description>
      <pubDate>Tue, 17 Jan 2006 06:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/tru64-shell-script/m-p/3710415#M4016</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-17T06:18:02Z</dc:date>
    </item>
  </channel>
</rss>

