[ILUG] Request to ILUG gurus: comparing files on different machines

Ronan Cunniffe ronan at iaa.es
Fri Oct 6 12:17:13 IST 2006


Timothy Murphy wrote:
> I want to determine which files in directory foo/ on remote machine A
> are duplicates of files in directory foo/ on my current machine.
> What is the simplest way to do this, please?
>
>   
1: Generate md5sums of local files ('md5sum ~/foo/* >local_md5s')
2: Repeat for remote machine (as above, prefaced with ('ssh 
tim at remotehost ')
3: Read the set operations stuff in Padraig's excellent reference: 
http://www.pixelbeat.org/cmdline.html.

Ronan



More information about the ILUG mailing list