title: while loop bash script
body: <p>i have a text file contains following information:</p>
  
  <pre><code>/media/Arc/eo_archive_test/MODIS/L2_LAC_OC/A2006001071000.L2_LAC_OC.x.hdf:2006:365
  /media/Arc/eo_archive_test/MODIS/L2_LAC_OC/A2006001084000.L2_LAC_OC.x.hdf:2013:011
  /media/Arc/eo_archive_test/MODIS/L2_LAC_OC/A2006001084500.L2_LAC_OC.x.hdf:2005:365
  ....
  </code></pre>
  
  <p>I want to echo $f1 where $f2 is "2013" and $f3 is "011". i am using following script but its echoing all. what am i doing wrong here?</p>
  
  <pre><code>file=/media/Arc/eo_archive_test/MODIS/input/all_file_list.txt
  while IFS=: read -r f1 f2 f3
  do
      [ "$f2" = "2013" ] || [ "$f3" = "011" ]
      echo $f1
  done &lt; "$file"
  </code></pre>
  
  <p>any solution?
  Thank you in advance</p>