title: Shell Scripting Case issue
body: <p>I am trying to make a shell script that takes arguments and then performs the appropriate mathematical equation depending on the second variable. I am receiving "syntax error near unexpected token `in" and "case "$y" in"</p>
  
  <pre><code>#!/bin/sh  
  echo "Variable name \$1 $1"  
  echo "Variable name \$2 $2"  
  echo "Variable name \$3 $3"  
  y=$2  
  echo $y  
  case $y in  
      '+')    x=`expr $1 + $3`  
              echo $x  
              ;;  
      '-')    x=`expr $1 - $3`
              echo $x  
              ;;  
      '\*')   x=`expr $1 \* $3`  
              echo $x  
              ;;  
      '/')    x=`expr $1 / $3`  
              echo $x  
              ;;  
      '%')    x=`expr $1 % $3`  
              echo $x  
              ;;  
      '*')    echo "Invalid option"  
              exit 1  
              ;;  
  esac
  </code></pre>