-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging Individuals Within Same Gedcom #320
Comments
In theory, it might be possible to filter the same file twice and merge and output to GEDCOM, but I seriously doubt this would work. Something like: gedcomq -gedcom file.ged -gedcom file.ged -format gedcom \
'Bob is Document1 | .Individuals | Only(.Name = "Bob Smith"); Robert is Document2 | .Individuals | Only(.Name = "Robert Smith"); MergeDocumentsAndIndividuals(Bob, Robert)' > merged.ged I suspect even if this does not error, it won't be able to convert Bob/Robert to valid Documents for the merge. Your best bet is to write this in go (or, if you're feeling ambitious, update the query language to accordingly) |
I'll take a look at giving that a go and updating it to do that. When I started to query for a specific person using the Pointer
The output was
Does the search not work for this field? |
I also tried
And get
|
On Mac, it seems to be working correctly:
I just found on windows the terminal doesn't accept this syntax for double quotes: https://stackoverflow.com/questions/7760545/escape-double-quotes-in-parameter I think you need to escape the double quotes:
Or this?
|
Is there currently a cli command that can merge two individual nodes within the same Gedcom file and output it to a new file?
The text was updated successfully, but these errors were encountered: