The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-19-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Post

Try simplifying to this..


Code:
#!/bin/sh

cat /home/brdholman/testing/Tar/Message.dat | while read LINE
do
     VERSION="$LINE"
     cat Version.txt | while read LINE2
     do
          if test "$LINE2" = "$VERSION"
          then
              echo "$VERSION"
          fi
     done
done

I don't think the "continue" adds anything positive.