Advertisement
adilima

compare 2 md5sums

Dec 3rd, 2014
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. code1=$(cat $1 | cut -d'=')
  2. code2=$(cat $2 | cut -d'=')
  3.  
  4. for tok1 in $code1; do
  5.   bVal=0
  6.   for tok2 in $code2; do
  7.     if [ $tok1 == $tok2 ]; then
  8.       bVal=1
  9.       echo "$tok1 == $tok2"
  10.       done
  11.     fi
  12.   done
  13.   if [ bVal == 0 ]; then
  14.     echo "$tok1 NOT FOUND"
  15.   fi
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement