title: Bash if statement syntax error
body: <p>I'm at a loss as to why this is giving a syntax error.  Any thoughts?</p>
  
  <pre><code>#!/bin/bash
  
  if [ `date +%H` -lt 11 ] ; then exit 0;
  fi
  
  if [ `date +%H` -gt 14 ] ; then
    if[ `date +%H` -lt 20 ] ; then  # &lt;--- this line is the culprit, it seems
      exit 0;
    fi
  fi
  </code></pre>
  
  <p>When run, I get:</p>
  
  <pre><code>./get.sh: line 7: syntax error near unexpected token `then'
  ./get.sh: line 7: `  if[ `date +%H` -lt 20 ] ; then '
  </code></pre>