The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-2008
sumeet sumeet is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 31
cat file1 > file2

lets say file1 gets updated.

diff file1 file2 > file3.

if [ -s file3 ]
do something. (in your case FTP)
fi

thanks
Sumeet