use "diff" to compare any file missing
I have two directory , I would like to compare the file difference , if found any file is not match , then send me alert , like the below example , the /ora1 have the file test3 , but /ora2 do not have , /ora2 have file test4 but /ora1 do not have , then send me alter mail for the difference , can advise what can i do ?
#ls /ora1
test1
test2
test3
#ls /ora2
test1
test2
test4
Furthermore , under /ora1 have a directory temp ( but /ora2 do not have this directory ) , so how to only compare the file but not compare directory ?
Please advise what can i do ? thx
|