title: If statement syntax eror
body: <p>I am trying to figure out how to check to see if the first input will end with <code>.txt</code>. It seems like the standard if statement syntax does not apply to my code based upon the way I am getting the input. Does anyone know the proper syntax for the else if statement in my first if statement in my code?</p>
  
  <pre><code> #!/bin/sh
  
  printf "%b %b\n" "$*"
  
  if [ "$1" = "-help" ]
  then
      echo "Cool Beans"
  elif [ "$1" = "*.txt" ]
  then
      echo "text recd"
  
  else
      echo "first input not valid"
  fi
  
  if [ "$2" = "-help" ]
  then
      echo "help options"
  else
      echo "second input not valid"
  fi
  </code></pre>