The first step is to determine if the Asterisk (“*”) has any meaning that will be lost.
(e.g., you imported the data from your sister-in-law who marked her direct Ancestor’s surnames with an Asterisk.)
You protect that meaning by Tagging these rows before removing the Asterisk.
Fortunately, you are using Gramps 5.2.2 because the following process needs two 5.2 enhancement to the CSV import:
- CSV dialect delimiters can be changed and now allows the Tab … which is more compatible with clipboarded data from a spreadsheet. Thanks @SNoiraud !!
- the CSV importer no longer replaces the Surname AND Given name if either one is specified. Now you can replace just the Surname. Thanks @dsblank !!
In the Data tab of Preferences, use the Edit… add a “Display” Name format that only shows the Surname. Then select the new “Surname” format.:
Then I went into the People (flat list) view and used the Configure to trim down the columns to just the data that would be used for a mass modification using a Spreadsheet: Name, ID and Last Changed date. (The Last Changed is included just so I can find and recheck the Rows in an unfiltered view after they are modified!)
Notice that one of the Rows doesn’t have an Asterisk displayed. In that instance, the person (Garner von Zieliński) has an Alternative Name with an asterisk. And since that is a Multiple Surname that
ALSO as a prefix, this is an important name to edit manually.
But the trimmed down number of columns makes it easier to manage in an exported CSV table.
Now use the Family Trees → Export View… to export a CSV file (which uses Tabs instead of commas as delimiters because of my CSV dialect choices) that can be imported into a spreadsheet tool… like LibreCalc or Excel.
In the spreadsheet, replacing the Asterisk is just a Search&Replace all of the asterisk with a blank.
It is good to delete that problematic “Garner von Zieliński” and rename the column titles with what the import expects: “Name” should be “Surname” and “ID” should be Person.
Finally, since I want to UPDATE the records during the Import rather than create new records, the ID needs to be wrapped in square brackets. That could be done with a string concatenation formula. But it is easier to just a formatting option for the data in the spreadsheet. So I select the cells with an ID and set the Format Code to put the brackets around the @ (“At” symbol ‘text value’) placeholder: "["@"]"
Now just copy the cells with the updates (including the headers) to the OS clipboard.
And paste into the Import Text addon gramplet and click the Import button.