I would like to use "rsync --dry-run" option to compare two directories, make use the output programatically.
However, besides the filelist, rsync also spits out some lines as shown below. And from version to version, the message is different. For example, in a newer version, we do not have "xxxx files to consider.", and no "^rsync: ". This makes excluding these lines difficult. Any advice? Thanks. -- rsync: building file list... rsync: 3154 files to consider. ... filelist ... wrote 65063 bytes read 20 bytes 43388.67 bytes/sec total size is 152420617 speedup is 2341.94 -- -- Michael Wang http://www.unixlabplus.com/ -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html