title: Unable to run the unix shell script
body: <pre><code>    #!/bin/ksh
      echo -n "enter the 1 to convert lower to upper or 2 convert upper to lower"
      read n
      echo -in_str "Enter the string here"
      read in_str
      echo $n
      echo $in_str
      if [ $n -eq 1 ] then
          $ echo $in_str| awk '{print toupper($0)}'
      elif [ -n -eq 2 ] then
          $ echo $in_str| awk '{print tolower($0)}'
      else
          echo "please select the correct choice"
      fi
  </code></pre>
  
  <p>Getting error: else unexpected i am unable to run the above code</p>