title: grep for expression containing variable
body: <p>I want to add this command <strong>grep -co '\b5\b' $INFILE</strong> in a bash script. The problem is that instead of 5 i want to use a variable in its place so i write:</p>
  
  <pre><code>V=`grep -co '\b$L\b' $INFILE`
  </code></pre>
  
  <p>but it does not work since the $ is used to describe internally the end of line in grep. How can i make it work? Is there an escape sequence for $ to make it use its bash meaning of the value of a variable?</p>