title: Awk pattern search with variables
body: <p>Ok so i can get a variable to pass into awk but when there is a space in variable it will not search anything so here is some code</p>
  
  <pre><code> new="bob"
   searc=`awk '/#'$new':/,/---/ {print $0}'` file.txt
   echo "$searc"
  </code></pre>
  
  <p>should display something like this</p>
  
  <pre><code>  #bob:
     happy
     fun
     love
     sun
    ------
  </code></pre>
  
  <p>so the first example ^ works perfectly however Luke Jackson is never found now the reason for the name being stored in a variable is because it suppose to be dynamic so it can change. Now am i missing something simple here or i just cant do it this way?</p>
  
  <pre><code> new="Luke Jackson"
   searc=`awk '/#'$new':/,/---/ {print $0}'` file.txt
   echo "$searc"
  
    #Luke Jackson:
     sad
     fun
     evil
     moon
    ------
  </code></pre>