Hi all,
the problem:
I have two discs with almost same folders and files. I need to merge their content. So i need to find the different files. This is not about a simple merge, i have to keep some files and to remove others.
up to now:
I tried with
but it doesn't works for me, because it not only shows the filenames, but dumps their contents too.
Next I tried whit
of the
, but there are few problems - (1) the mount points are different and (2) some times the owner of two files is not the same, but the content is the same.
the question:
is there a simple way (say less than 10 line of code) to find files that are different or not present form one directory structure to another?
the problem:
I have two discs with almost same folders and files. I need to merge their content. So i need to find the different files. This is not about a simple merge, i have to keep some files and to remove others.
up to now:
I tried with
Code:
diff
Next I tried whit
Code:
diff
Code:
ls -lha
the question:
is there a simple way (say less than 10 line of code) to find files that are different or not present form one directory structure to another?