<?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: Case statement w/input range check in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017902#M96842</link>
    <description>&lt;!--!*#--&gt;Thanks for the info!</description>
    <pubDate>Sat, 09 Dec 2006 11:31:27 GMT</pubDate>
    <dc:creator>john guardian</dc:creator>
    <dc:date>2006-12-09T11:31:27Z</dc:date>
    <item>
      <title>Case statement w/input range check</title>
      <link>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017900#M96840</link>
      <description>&lt;!--!*#--&gt;Hi. Will this work as is or do I need to modify? I basically want to perform a range check on a given input and perform an action based upon the NUMBER. Thanks.&lt;BR /&gt;&lt;BR /&gt;case ${NUMBER} in&lt;BR /&gt;  0-99):;;&lt;BR /&gt;  *) :;;&lt;BR /&gt;esac&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Dec 2006 10:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017900#M96840</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2006-12-09T10:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement w/input range check</title>
      <link>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017901#M96841</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;# cat .mycase&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset NUMBER=$1&lt;BR /&gt;case ${NUMBER} in&lt;BR /&gt;  [0-9] | [0-9][0-9] )&lt;BR /&gt;    echo "valid number in range"&lt;BR /&gt;  ;;&lt;BR /&gt;  * )&lt;BR /&gt;    echo "not a number or out of range"&lt;BR /&gt;esac &lt;BR /&gt;&lt;BR /&gt;# ./mycase 77&lt;BR /&gt;valid number in range&lt;BR /&gt;# ./mycase 100&lt;BR /&gt;not a number or out of range&lt;BR /&gt;# ./mycase 0&lt;BR /&gt;valid number in range&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 09 Dec 2006 11:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017901#M96841</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-12-09T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Case statement w/input range check</title>
      <link>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017902#M96842</link>
      <description>&lt;!--!*#--&gt;Thanks for the info!</description>
      <pubDate>Sat, 09 Dec 2006 11:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/case-statement-w-input-range-check/m-p/5017902#M96842</guid>
      <dc:creator>john guardian</dc:creator>
      <dc:date>2006-12-09T11:31:27Z</dc:date>
    </item>
  </channel>
</rss>

