<?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: simple script case if then else issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507874#M217737</link>
    <description>What about just adding a semi-colon between the ] and the then statement:&lt;BR /&gt;&lt;BR /&gt;if [ $5 = "test_str" ] ; then</description>
    <pubDate>Fri, 18 Mar 2005 17:26:07 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2005-03-18T17:26:07Z</dc:date>
    <item>
      <title>simple script case if then else issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507873#M217736</link>
      <description>Embarassing...ksh generates "unexpected fi" and I can't resolve the syntax...must be friday late pm brain dead.  Help please.  Thanks Doug&lt;BR /&gt;&lt;BR /&gt;case $2&lt;BR /&gt;in&lt;BR /&gt;   test_str)&lt;BR /&gt;   if [ $5 = "test_str" ] then           &lt;BR /&gt;        echo $1 $2 $3 $4 $5 &lt;BR /&gt;   fi&lt;BR /&gt;   ;;&lt;BR /&gt;&lt;BR /&gt;other_str)&lt;BR /&gt;   similar cmds&lt;BR /&gt;   ;;&lt;BR /&gt;&lt;BR /&gt;esac</description>
      <pubDate>Fri, 18 Mar 2005 17:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507873#M217736</guid>
      <dc:creator>Doug_3</dc:creator>
      <dc:date>2005-03-18T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: simple script case if then else issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507874#M217737</link>
      <description>What about just adding a semi-colon between the ] and the then statement:&lt;BR /&gt;&lt;BR /&gt;if [ $5 = "test_str" ] ; then</description>
      <pubDate>Fri, 18 Mar 2005 17:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507874#M217737</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-03-18T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: simple script case if then else issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507875#M217738</link>
      <description>Add a semicolon:&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;after the "]" or move "then" to a separate line.&lt;BR /&gt;&lt;BR /&gt;if [ $5 = "test_str" ] ; then&lt;BR /&gt;&lt;BR /&gt;if [ $5 = "test_str" ] &lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;BTDTGTTS.&lt;BR /&gt;&lt;BR /&gt;Mic</description>
      <pubDate>Fri, 18 Mar 2005 17:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-script-case-if-then-else-issue/m-p/3507875#M217738</guid>
      <dc:creator>Mic V.</dc:creator>
      <dc:date>2005-03-18T17:30:27Z</dc:date>
    </item>
  </channel>
</rss>

