<?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: input parameter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690204#M842397</link>
    <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Can you tell me how can I check if expert was actually specified?&lt;BR /&gt;&lt;BR /&gt;if [ "$MYPARAM"=="expert" ]; then&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;doesn't seem to work.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
    <pubDate>Mon, 25 Mar 2002 19:59:42 GMT</pubDate>
    <dc:creator>andi_1</dc:creator>
    <dc:date>2002-03-25T19:59:42Z</dc:date>
    <item>
      <title>input parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690202#M842395</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My script needs the following capability. It either gets no parameters or one parameter called expert.&lt;BR /&gt;&lt;BR /&gt;myScript.sh&lt;BR /&gt;or&lt;BR /&gt;myScript.sh expert&lt;BR /&gt;&lt;BR /&gt;Does anyone know how can I find if expert was passed in?&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 25 Mar 2002 19:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690202#M842395</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-03-25T19:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: input parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690203#M842396</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Yes, that is rather easy:&lt;BR /&gt;&lt;BR /&gt;MYPARAM=""&lt;BR /&gt;if [ $# -ge 1 ]&lt;BR /&gt;  then&lt;BR /&gt;    MYPRAM=$1&lt;BR /&gt;    shift&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;if [ -n "${PARAM}" ]&lt;BR /&gt;  then&lt;BR /&gt;    echo "I have a value"&lt;BR /&gt;  else&lt;BR /&gt;    echo "I don't"&lt;BR /&gt;  fi&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Mar 2002 19:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690203#M842396</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-25T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: input parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690204#M842397</link>
      <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Can you tell me how can I check if expert was actually specified?&lt;BR /&gt;&lt;BR /&gt;if [ "$MYPARAM"=="expert" ]; then&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;doesn't seem to work.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Mon, 25 Mar 2002 19:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690204#M842397</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-03-25T19:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: input parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690205#M842398</link>
      <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;Pardon my inconsistant varaibable naming; all of the above should have been 'MYPARAM' but the answer to your question is to change '==' to '=' and you are set.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Mar 2002 20:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/input-parameter/m-p/2690205#M842398</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-25T20:04:11Z</dc:date>
    </item>
  </channel>
</rss>

