Comparing files with two loops?

view story

http://unix.stackexchange.com – 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... while read compareFile <&3; do if [[ ! $server =~ [^[:space:]] ]] ; then #empty line exception continue fi echo "Comparing file - $compareFile" if diff "$compareFile" _(other file from loop?_) >/dev/null ; then echo Same else echo Different fi done 3</infanass/dev/admin/filestoCompare.txt 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? (HowTos)