[Novalug] Diff for directories?
rarob at comcast.net
rarob at comcast.net
Thu Aug 7 12:02:57 EDT 2008
-------------- Original message ----------------------
From: Nick Danger <nick at hackermonkey.com>
> I have two external HDs. Both are holding a large (60gig+) collection of
> music files. Somehow I got them out of sync, and each side has a few
> zero byte files. They differ from drive to drive so I cant just do a
> bulk copy from one to the other. Is there a diff command for
> directories? So I can find which files are zero on one side but not on
> the other? Short of writing some shell/perl, I can't think of anything
> really easy one command line type.
>
> Nick
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
diff -r --brief $DIR1 $DIR2
This will show you which files are different, either by the contents being different
or by a file showing up in one directory or the other. If *both* files are zero, then
this will not show them, but then you have a different (no pun intended) problem.
Rob
More information about the Novalug
mailing list