title: Bash script if condition
body: <p>I am trying to understand a piece of code here and as I am not an expert on bash, I am struggling to find out what the below <strong>if</strong> does:</p>
  <pre><code>  if [[ &quot;$4&quot; == *&quot;-a &quot;* ]]; then
  </code></pre>
  <p>I understand the $4 is the fourth parameter, but I am not getting the rest...</p>
  <p>Why the condition is between *?</p>
  <p>Thank you folks, appreciate any help.</p>
  <p>Regards,</p>
  <p>Thiago</p>