Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jun 2002 09:53:17 -0500 (CDT)
From:      Conrad Sabatier <conrads@cox.net>
To:        "Jack L. Stone" <jackstone@sage-one.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Running Diff of Directories
Message-ID:  <XFMail.20020609095317.conrads@cox.net>
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 09-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....???

diff dir1 dir2 | grep '^Only in '

-- 
Conrad Sabatier <conrads@cox.net>

"I'd rather have a bottle in front of me than a frontal lobotomy."


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?XFMail.20020609095317.conrads>