https://github.com/theohbrothers/get-duplicatecontact
A script to locate duplicate or non-duplicate contacts between two `.csv` contact lists.
https://github.com/theohbrothers/get-duplicatecontact
compare-object contact-lists contacts csv duplicates hashtable json keys nonduplicates object objects powershell pwsh script xml
Last synced: about 2 months ago
JSON representation
A script to locate duplicate or non-duplicate contacts between two `.csv` contact lists.
- Host: GitHub
- URL: https://github.com/theohbrothers/get-duplicatecontact
- Owner: theohbrothers
- License: mit
- Created: 2021-10-22T12:48:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-22T12:57:07.000Z (over 4 years ago)
- Last Synced: 2025-01-25T14:29:07.533Z (over 1 year ago)
- Topics: compare-object, contact-lists, contacts, csv, duplicates, hashtable, json, keys, nonduplicates, object, objects, powershell, pwsh, script, xml
- Language: PowerShell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get-DuplicateContact
A script to locate duplicate or non-duplicate contacts between two `.csv` contact lists.
It is not just restricted to contacts as the project name implies, but really can compare between any two `.csv` lists. In fact you can use `.json` and `.xml`, just change the `ConvertFrom-Csv` to `ConvertFromJson` and `ConvertFrom-Xml` respectively.
## Notes
Why not just use `Compare-Object`?
- Searches using hashtable keys should be faster than `Compare-Object`. When working with many thousands or millions of records, the difference will be significant
- Hashtables build a meta object which can be used to store metadata, e.g. object keys.
- `Compare-Object` is generally unintuitive at least to the author. `.SideIndicator` grouping is difficult to manage and debug.