3

I recently got access to some of my grandpas genealogy research, which I have imported to Gramps as a ".ged"-file. Many of the dates are in a format which Gramps doesn't understand: Data formating

Is there anyway to reformat all of my dates at the same time, instead of going through them one by one?

2 Answers 2

7

A GEDCOM file is a text file. You can open it up in a text editor and do "search and replace".

I would suggest 12 different replacements; one for each month. For example, replace " juni " with " jun ". (include the spaces so you don't mess up other bits of the file).

Of course, you'll want to do this on a copy of the GEDCOM file; not the original.

2
  • 2
    Yeah, definitely include the spaces, else you'll be renaming all of your relatives with Julia-type names. :-)
    – JPmiaou
    Nov 15, 2021 at 19:03
  • That would work! Now I only have the problem that some dates are in a "day-month-year"-format. I can only get Gramps to register dates if they are as "year-month-day".
    – Ludwiggle
    Jul 17, 2022 at 13:44
3

This is intended to be a supplement to the earlier answer for users who need a bit more information about editing text files.

I'll start by repeating the excellent advice which was given already.

  1. ALWAYS work on a copy of your GEDCOM file and not the original!
  2. When you do a search and replace, include the spaces on either side of the month names, so you won't edit any instances in those strings in the middle of words.

A GEDCOM is a text file which can be edited with a text editor. These programs are sometimes called plain text editors to distinguish them from programs that use rich text format such as Microsoft Word and other word processors.

Wikipedia's articles List of Text Editors and Comparison of text editors contain more information about available editors and their features.

Some editors such as TextPad editor have add-ons that will allow them to be used with GEDCOM; see the help for information about the TextPad GEDCOM syntax file.

For a comprehensive list of GEDCOM utilities such as GEDCOM validators, see Cyndi's List: Category GEDCOM software and tools.

Resources:

Family Historian User Group Knowledge Base articles

ThoughtCo article: How to Read and Open a GEDCOM file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.