title: 2 while read loops?
body: <p>So the object of the script I'm making is to compare files from two while read lists that have file path names in them...</p>
  
  <pre><code>while read compareFile &lt;&amp;3; do     
   if [[ ! $server =~ [^[:space:]] ]] ; then  #empty line exception
    continue
   fi   
      echo "Comparing file - $compareFile"
   if diff "$compareFile" _(other file from loop?_) &gt;/dev/null ; then
      echo Same
   else
       echo Different
   fi   
   done 3&lt;/infanass/dev/admin/filestoCompare.txt
  </code></pre>
  
  <p><strong>I need to be able to compare files from two different lists at the same time through two while read loops... Is this even possible?</strong></p>