title: bash if empty string
body: <p>Some may have found out that in Ubuntu when you install or update via terminal</p>
  
  <p>you get a question similar to </p>
  
  <blockquote>
    <p>"do you with to install or remove package [Y/n]?"</p>
  </blockquote>
  
  <p>when you press enter its like its the same as when you type "Y" or "y"</p>
  
  <p>So i was wondering how to make that in bash 
  This is what i have so far?</p>
  
  <pre><code>echo "question?[Y/n]"
  read choose
  if [ $choose ~= "Y" ] [ $choose ~= "y" ] [ $choose ~= "" ]
  then 
  #code
  fi
  </code></pre>