mapdircmp - Compare directory trees with mapdir(1)
mapdircmp [-hkv] [-x excludes_file] savefile1 dirtree1 savefile2 dirtree2
mapdircmp is a wrapper script around the mapdir(1) utility, that makes
the verification of directory trees, that are assumed to be equal, easier to
perform. The savefile arguments will be generated in the invoking user's home
directory by default. The following options are understood:
- -h
- print usage information and exit.
- -k
- keep the savefiles.
- -v
- be more verbose.
- -x excludes_file
- read the files to be excluded from excludes_file. Entries are expected to
contain the full path to file and are read line by line.
Verify the consistency between /path/to/dir1 and /path/to/dir2 and keep the
savefiles:
mapdircmp -k dir1.txt /path/to/dir1 dir2.txt /path/to/dir2
Please report when found.
Oliver Mahmoudi (contact@olivermahmoudi.com)