[CentOS] compare directories

MHR mhullrich at gmail.com
Thu Oct 23 18:06:56 UTC 2008

On Thu, Oct 23, 2008 at 10:15 AM, Bill Campbell <centos at celestial.com> wrote:
> A somewhat cleaner way of doing this is to use the ``comm''
> command as it generates a straight list as opposed to diff which
> requires parsing the output.

But comm also "requires" that the data be sorted.  Otherwise you can
get spurious output because lines that are actually the same but do
not appear in order will show up as differences.

I'd go with the rsync solutions already posted, but that's just me.


More information about the CentOS mailing list