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 11-06-2007
gus2000 gus2000 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 157
This works for me:


Code:
a=100; b=100
if [[ $a -eq $b ]]; then
  echo "File sizes match."
else
  echo "File sizes differ!  Error!"
fi > MAIL

Of course, you would need to plug the file sizes into $a and $b.