title: Grep for a dollar sign within backticks
body: <p>I have a file like this </p>
  
  <p>File name : hello.txt</p>
  
  <pre><code>{1:ABC}{2:BCD}{3:{108:20140619-2}}{4:
  :97A::Hi//12345
  :97A::Hi//12345
  :93B::Hello//FAMT/00000,
  :16S:FIN
  -}{5:{CHK:BDG6789}}{S:{ABC:}{DEF:S}{WOM:ONHGRT}}
  </code></pre>
  
  <p>Now basically i'm checking for the existence of $ symbol and as well as :97A: AND im using the below if statement.</p>
  
  <pre><code>if [ `grep -c '\$' hello.txt` -gt 0 ] &amp;&amp; [ `grep -c ":97A:" hello.txt` -gt 1 ]
  then
  echo "condition satisfied"
  else
  echo "condition not satisfied"
  fi
  </code></pre>
  
  <p>if i execute this im getting condition satisifed echo statement. But id should be the other way round :( since im putting AND condition. Please help on this.</p>