title: What does if [ $? -eq 0 ] mean for shell scripts?
body: <p>There is this line in a shell script i have seen:</p>
  
  <pre><code>grep -e ERROR ${LOG_DIR_PATH}/${LOG_NAME}  &gt; /dev/null
  if [ $? -eq 0 ] 
  </code></pre>