Tool to compare directories
Suvayu Ali
fatkasuvayu+linux at gmail.com
Tue Jan 29 01:49:12 UTC 2013
On Mon, Jan 28, 2013 at 03:34:54PM +0000, Patrick O'Callaghan wrote:
> On Mon, 2013-01-28 at 15:32 +0100, Suvayu Ali wrote:
> > On Mon, Jan 28, 2013 at 06:16:16AM -0600, Bruno Wolff III wrote:
> > > On Mon, Jan 28, 2013 at 11:49:29 +0000,
> > > Paul Smith <phhs80 at gmail.com> wrote:
> > > >Dear All,
> > > >
> > > >Could you please advise me on a tool to compare two directories? That
> > > >is a tool able to identify the files of the first directory that are
> > > >missing in the second one?
> > >
> > > You can use diff -r to recursively compare directories.
> >
> > I use this instead:
> >
> > $ rsync -rvnc --delete <olddir> <newdir>
>
> AFAIK --delete flags files from the target which are not present in the
> source, which is the reverse of what the OP is asking for, so maybe the
> two directories should be inverted.
>
Yes, I think you are correct. Thanks for correcting me. :)
--
Suvayu
Open source is the future. It sets us free.
More information about the users
mailing list