title: Using a pipe to input in an awk statement
body: <p>So I'm dealing with a file named cars, here's it contents:</p>
  
  <pre><code>toyota corolla 1970 2500
  chevy malibu 1999 3000
  ford mustang 1965 10000
  volvo s80 1998 9850
  ford thundbd 2003 10500
  chevy malibu 2000 3500
  honda civic 1985 450
  honda accord 2001 6000
  ford taurus 2004 17000
  toyota rav4 2002 750
  chevy impala 1985 1550
  ford explor 2003 9500
  </code></pre>
  
  <p>I'm using grep to filter for lines containing a specific automaker and then piping that to my awk statement, and finally piping the final result to a new pipe with tee.</p>
  
  <p>Here's the line of code I'm having trouble with:</p>
  
  <pre><code>grep "$model" cars | 
     awk '($3+0) &gt;= ("'$max_year'"+0) &amp;&amp; ($4+0) &lt;= ("'$max_price'"+0)' | 
       tee last_search
  </code></pre>
  
  <p>I previously defined variables max_year and max_price as a user input in my script.</p>
  
  <p>The file last_search is made but it's always empty. </p>