#!/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