[nzlug] diffmerge
Johann Schoonees
j.schoonees at irl.cri.nz
Fri Aug 25 17:37:08 NZST 2006
Hi
Anyone know of a tool that merges files from one or more directories
to a destination directory, based on diff(1) or cmp(1) instead of
filenames?
diffmerge [options] target_dir [target_dir ...] dest_dir
Creates dest_dir if it does not exist. Any existing dest_dir need not
be empty but its files will not be mutually compared for uniqueness.
Options might be:
-A Include hidden files
-R Recurse through target_dir[s]
Some arbitrary rules may have to be made, such as:
If two files compare successfully (whether their filenames agree or
not), only the older one is copied to dest_dir.
If two files differ but have the same name, add a unique suffix to the
newer one.
No luck with google. I'm about to start writing a bash script but
someone might save me a lot of time.
Johann
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
More information about the NZLUG
mailing list