To compare the structure by iterating through each and every folder, I have tried to list the output(to a text file) of every directory and file present :
diff --brief -Nr dir1/ dir2/ > out.txt
The output I have got is only for difference in files. I want the output which will iterate through the folders and specify if the folder exists in another directory.This should be valid for complete structure, files as well as folders.
cat out.txt :
Files abc/def/xy.txt and pqr/def/xy.txt differ
Files abc/ooo/q.txt and pqr/ooo/q.txt differ
Files abc/ooo/t.txt and pqr/ooo/t.txt differ