title: Bash if string = this or that
body: <p>Trying to write a script which will read what a user has imput... I know it's basic but im stuck on the first if..</p>
  
  <pre><code>echo  "Please enter yes or no (y/n)?"
  read string
  if [ $string = "y" -o "n" ]
     then
        echo "User selected $string"
     else
        echo "You didn't enter y/n !!!"
  fi
  </code></pre>
  
  <p>I would like it to be if [ $backup = "y" or "n" ]</p>
  
  <p>Any ideas?</p>