title: compare the data between two variables and generate a report in to the text file
body: <p>my requirement is transfer the data from source data base to the target database
  job1.</p>
  
  <pre><code>sourcedatabase:oracle.      target
  table1                      target1.lst
  table2                      table2.lst
  table3                       table3.lst
  </code></pre>
  
  <p>this part i done successfully.</p>
  
  <p>job 2.
  now i want to count the number of records source database and target database
  this part also done successfully.</p>
  
  <p>job3:  ...........(this part only i am lacking)
  i kept the record count between source and target  in variable as well as text file
  now tell me how to compare the the values in a variable or a text file(these values are find by using select count(*) from table and wc -l $filename.) that i may find the loading process done successfully or not and also i want maintain a log file also</p>
  
  <p>please enhance me how to compare the values in a text file or a variable so that i can maintain a log file to generate a report maintain in a text file.</p>