Plain Township, Wayne County, Ohio

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search

For my own reference, sed one-liners to help with the Genealogy Wikification Project:

Here we identify and wikify surnames located in the first column of a wikitext table:

sed -i 's/\([^A-Z]*\)\([^,]*\),/\1[[\2 (surname)|]],/' tmp.txt

Wikification of minister tables:

sed -i 's/\([^A-Z]*\)\([^,]*\)\(,[^|]*||[^|]*||[^|]*||[^A-Z]\)\([A-Za-z]*\)/\1[[\2 (surname)|]]\3[[\4]]/'