ldifuniq.pl - Culls unique entries from a reference file with respect to a comparison file.
ldifuniq.pl takes as input two LDIF files, a reference file and a comparison file. Each entry in the reference file is compared to its counterpart in the comparison file. If it does not have a counterpart, or if the counterpart is not identical, the reference entry is printed to standard output. Otherwise no output is generated. This behavior is analogous to the -u option of the uniq command.
ldifuniq.pl reffile.ldif cmpfile.ldif
Kartik Subbarao <email@example.com>