title: If shell script file
body: <p>I try to write a shell script but I have some difficulties to do a special if statement. I would like that if it find a value in a file it do something.</p>
  
  <p>My file is like this:</p>
  
  <p>1, 2, 2, 8 <br/>0, 0, 3, 3 <br/>5, 0, 4, 5 <br/>1, 4, 5, 3 <br/>1, 0, 8, 7</p>
  
  <p>I do this to extract some information<br/></p>
  
  <p><code>sed -i '/^[0-9][0-9]*, [0-9][0-9]*, 3,/d' file.txt</code><br/></p>
  
  <p>But I would like to put this in a if condition, like if the third number is a 3 or 4 or 5 I do the sed else I do something else I try this:</p>
  
  <pre><code>if [ '/*, *, [3,5],/d' ]; then
      echo 'ok'
  else
      echo'fail'
  fi
  </code></pre>
  
  <p>But it doesn't work, it always prints ok.</p>
  
  <p>Do you know how I can do this?</p>