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 07-07-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,289
Do on both servers/directories something like for example:

Code:
find . -exec ls -la {} \;| awk '$NF !~ /^\.$|^\.\.$/ {print $5,$NF}' > outfile1

For $5 you have to check which position your filesize will be when you do a ls -l, ie. if it's the 5th column like in my example.
And then compare both with diff like

Code:
diff outfile1 outfile2