Comparing folder contents
Arno Hautala
fracai at mac.com
Sun Jul 29 07:06:29 PDT 2007
On 2007/07/29, at 03:24, Andrew Brown wrote:
> I have a folder on my machine with about 600 sub-folders containing
> about 30000 images and would like to check that the same images are
> in the same folders on my remote server. ... I just need to know
> if the files are there or not.
You could run ls -aR on both folders and diff the output.
Ideally you could run diff -rq <1/> <2/> | grep -v differ
But that would require either the remote to be mounted or some way to
run diff over a network.
There might be a way using rsync and -n (dry run) to show you what
files would be updated as well.
-- --
arno s. hautala /-\ arno at alum.wpi.edu
-- --
More information about the MacOSX-talk
mailing list