2
Following is the directory structure
Folder1
subFolder1
File1.txt
File2.txt
subFolder2
File3.txt
subFolder3
Folder2
subFolder1
File1.txt
File2.txt
subFolder2
File3.txt
File4.txt
subFolder3
File5.txt
I want to compare the contents of each file in Folder1 with the corresponding file in the Folder2.
i.e I want to check the contents of Folder1/subFolder1/File1.txt with the contents of Folder2/subFolder1/File1.txt
I used the unix command
diff -b Folder1/subFolder1/File1.txt Folder2/subFolder1/File1.txt
This works! But I would like to do this recursively for each file within the subFolders.
Kindly provide some pointers to this...
1Have you tried
--recursive
? – mogul – 2013-06-02T06:40:14.220