comparing lots of files
i am copying a truck load of files from one fs to another (gigs)
i want to know how i can either: ...make diff check though the whole fs and just tell me at the end that they ARE all the same. or ...make diff tell me that one of the files is NOT the same. cheers |
cd /<target>
find -exec diff "{}" /<origin/"{}" \; Cheers, Tink |
Not to confuse, but diff can recurse too. I did the same thing when moving files around. The command I used was:
Code:
diff --recursive --brief /path/to/dir1 /path/to/dir2 |
Heh - that's what I love about Linux, I learn something
everyday! :) ... I wasn't aware of recursion in diff. Cheers, Tink |
well thanks anyway Tinkster i was looking for that way as my version of *cough* AIX doesnt have --brief.
Thanks to both of you. |
All times are GMT -5. The time now is 12:58 PM. |