unixisbest
Technical User
- Jul 11, 2005
- 28
Hi all,
I need your solutions to compare two folders. I have two folders which has same directory and file structure. But i need to check that if both of them have equal files or not. And if there are any diferencies between two same files need to log it into a file.
My idea is using diff command like for example,
diff /usr/disk1/folder1/progs/PROG1 /usr/disk2/folder2/progs/PROG1
But the problem is there are thousends of files with diferent locations like this. So first i need to put files file paths into a file and then use diff command file by file. Therefore it is not gonna be easy.
Do you know any tool that can make this? Or any script idea?
Thanks guys
I need your solutions to compare two folders. I have two folders which has same directory and file structure. But i need to check that if both of them have equal files or not. And if there are any diferencies between two same files need to log it into a file.
My idea is using diff command like for example,
diff /usr/disk1/folder1/progs/PROG1 /usr/disk2/folder2/progs/PROG1
But the problem is there are thousends of files with diferent locations like this. So first i need to put files file paths into a file and then use diff command file by file. Therefore it is not gonna be easy.
Do you know any tool that can make this? Or any script idea?
Thanks guys