The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-18-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 557
ls -t will give you the last mod time of any file. just write a script that will compare each file in dir1 and dir2 and sync on the latest mod of the files. i don't understand why the file structure would be different if you are trying to sync the same stuff across two fs or platforms... do you mean the full paths are different? shouldn't matter.