title: 2 grep in if statement
body: <p>Anyone can tell me what will be the problem?i know that this is a half sec problem but pls help:) <code>egrep "first" a.sh &amp;&amp; egrep "second" a.sh</code> works, a.sh contains first,second,third etc.. Thx!</p>
  
  <pre><code> if [[ egrep "first" a.sh &amp;&amp; egrep "second" a.sh ]]; then
   echo "success"
   fi
  </code></pre>