title: How to check if a file contains a specific string using Bash
body: <p>I want to check if a file contains a specific string or not in bash. I used this script, but it doesn't work:</p>
  
  <pre><code> if [[ 'grep 'SomeString' $File' ]];then
     # Some Actions
   fi
  </code></pre>
  
  <p>What's wrong in my code?</p>