title: if statement with and shell script
body: <p>I am trying to make a if statement where if the hour is between 13 and 23 it will set the hour back to 12.  Now below is a snippet of my shell script code:</p>
  
  <pre><code>#!/bin/bash
  
  HOUR=$1
  if [ $HOUR &gt; 13 ] &amp;&amp; [ $HOUR &lt; 23 ];
  then
        $HOUR=12
  fi
  </code></pre>
  
  <p>Now I am getting errors when I run this script.  How can I tweak this script to get the desired conditions specified above?</p>