was trying to compare two directories. one directory is the reference directory(dir1) and the other is the directory where modifications(dir2) are being done
I need the list of files which are modified or added in the dir2 compared with dir1.
I used rsync and diff and getting the result. But need the files with absolute Path in the output.
diff --brief --recursive /test/dir2 /reference/dir1
Only in /test/dir2: king.txt
Only in /test/dir2/sdir2: abc.txt
Only in /test/dir2: test1
Only in /test/dir2/sdir3: test.txt
and using rsync
rsync -av --dry-run /test/dir2/ /reference/dir1
sending incremental file list
sent 52712 bytes received 1339 bytes 108102.00 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)
need the list with the complete path /test/dir2/king.txt and to be stored in one file.
Best Regards, KJ.