Date: Sun, 9 Jun 2002 19:41:57 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "Jack L. Stone" <jackstone@sage-one.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running Diff of Directories Message-ID: <20020609164157.GA3128@hades.hell.gr> In-Reply-To: <3.0.5.32.20020609092149.01044510@mail.sage-one.net> References: <3.0.5.32.20020609092149.01044510@mail.sage-one.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-06-09 09:21 -0500, 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....??? An easy way to do this is to compare the listing of each directory: % find /path/one -print > foo % find /path/two -print > bar % diff -u foo bar - Giorgos 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?20020609164157.GA3128>