Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2002 11:46:40 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        "Jack L. Stone" <jackstone@sage-one.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Running Diff of Directories
Message-ID:  <20020609114333.N7785-100000@localhost>
In-Reply-To: <3.0.5.32.20020609092149.01044510@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 9 Jun 2002, Jack L. Stone wrote:

> I'm trying to run an analysis of two large directories, on two different
> computers and only want to know what file names do not exist in one versus
> the other and want to ignore file size or dates. I have run a directory
> listing on each one, "file1" and "file2".
>
> I assume this is a job for "diff", but don't see "ignore option" for dates
> and file size, except perhaps a regex, which I don't grasp. How would I
> determine only the filenames that exist in file1 but not in file2....???

If you don't care about size, dates, permissions, and the like run a
'ls -R' which won't show them. Then you can do a 'diff -u' to see what files
are in one dir and not in the other.

Hope this helps.


			Fer


>
> Best regards,
> Jack L. Stone,
> Administrator
>
> SageOne Net
> http://www.sage-one.net
> jackstone@sage-one.net
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020609114333.N7785-100000>