Recursive diff recognizing link versus file
  Home FAQ Contact Sign in
comp.unix.questions only
 
Advanced search
POPULAR GROUPS

more...

comp.unix.questions Profile…
 Up
Recursive diff recognizing link versus file         


Author: AndyMHancock
Date: Mar 29, 2008 17:09

I'm doing a recursive diff (GNU diffutils) 2.8.7 for in an up-to-date
cygwin. The help explains that a symbolic link is treated as if it
was the file that is linked to. Is there a way to find the
differences in two file trees, including situations where a file is a
symbolic link in one tree but not the other?

Thanks.
2 Comments
Re: Recursive diff recognizing link versus file         


Author: Bill Marcum
Date: Mar 29, 2008 18:27

On 2008-03-30, AndyMHancock@gmail.com gmail.com> wrote:
>
>
> I'm doing a recursive diff (GNU diffutils) 2.8.7 for in an up-to-date
> cygwin. The help explains that a symbolic link is treated as if it
> was the file that is linked to. Is there a way to find the
> differences in two file trees, including situations where a file is a
> symbolic link in one tree but not the other?
>
> Thanks.

Use "find . -type l".
no comments
Re: Recursive diff recognizing link versus file         


Author: AndyMHancock
Date: Mar 30, 2008 15:18

On Mar 29, 9:27 pm, Bill Marcum bellsouth.net> wrote:
> On 2008-03-30, AndyMHanc...@gmail.com gmail.com> wrote:
>
>
>
>> I'm doing a recursive diff (GNU diffutils) 2.8.7 for in an up-to-date
>> cygwin. The help explains that a symbolic link is treated as if it
>> was the file that is linked to. Is there a way to find the
>> differences in two file trees, including situations where a file is a
>> symbolic link in one tree but not the other?
>
>> Thanks.
>
> Use "find . -type l".

Bill,

Appreciate the pointer to the find switch. I was wondering, though,
if there was a way to find *differences* between potentially large
file trees in such a way that the a difference is recognized as
including a file in one tree existing as a link in the other tree.
no comments