title: How to use grep in an if statement?
body: <p>I have the following command which gives me the correct result:</p>
  
  <p><code>grep --include='*.java' -Ri 'System.loadLibrary' *</code></p>
  
  <p>However, if I put it in an if condition, it always returns the same 0 result, no matter if the string exists or not:</p>
  
  <p><code>if [ "grep --include='*.java' -Ri 'System.loadLibrary' *" = 0 ] then ...</code></p>
  
  <p>What am I doing wrong?</p>