Hi All,
Please find my problem below:
I have a file at two different nodes dev and test
1st find> find /u/dev/local/abc -name ab.dat
--Since this file can be in several sub directories
2nd find> find /u/test/local/abc -name ab.dat
I find my 1st find result and do compare with 2nd find result. Have to see the diffrence in the two file.
I am doing a find on the following way since I have file ab.dat in many sub directories of /u/dev/local/abc (/u/dev/local/abc/p1,/u/dev/local/abc/p2/p01 etc). I need to search for prence of thsi file in each sub directory and then compare it with subsequent test file.
The above find gives me list of all the ab.dat file with their sub-directories. I do not want to use an external file to store the result and then pick one by one and do diff in dev and test directories. Is there way to do it through loops.
Find in dev --> get the first dev/d1/ab.dat then look for the corresponding test directory test/d1/ab.dat and then do diff ans say there was difference the go on to search next in loop and print the list of the path/ab.dat file having difference.
Thanks,
Varun