title: Is there a reason why the UPPER isn't working in the bash script?
body: <p>I am trying to make it so I can use a upper or lower case as the variable read.
  here is my code that I did. This is meant to select the model of the server and run the right install file based on the input</p>
  <pre><code>#!/bin/bash
  clear
  dir=&quot; &quot;
  # ============================================================================
  # Set the Product Name
  # ============================================================================
  MODEL=&quot;UNKNOWN&quot;
  while [ &quot;$1&quot; = &quot;UNKNOWN&quot; ]; do
      KIND=&quot;UNKNOWN&quot;
      echo -n &quot;Enter kind [HPCLD|HBCB]: &quot;
      read KIND
      UPPER=&quot;$(echo ${KIND}|tr 'a-z' 'A-Z')&quot;
      case &quot;$UPPER&quot; in
          HPCLD) MODEL=&quot;HPCLD&quot; ;;
          HBCB) MODEL=&quot;HBCB&quot; ;;
      esac
  done
  
  if [ &quot;$1&quot; == &quot;HPCLD&quot; ]; then
      echo &quot;Preparing to installation HPCLD applications....&quot;
      cd hpcld
      dir=&quot;$(pwd)&quot;
      echo $dir
      echo &quot;./install_hpcld.sh&quot;
  else
      echo &quot;Preparing to installation HBCB applications....&quot;
      cd hbcb
      dir=&quot;$(pwd)&quot;
      echo $dir
      echo &quot;./install_hbcb.sh&quot;
  fi
  </code></pre>