Difference between revisions of "Plain Township, Wayne County, Ohio"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
Wikification of minister tables: | Wikification of minister tables: | ||
− | <pre>sed -i 's/\([^A-Z]*\)\([^,]*\)\(,[^|]*||[^|]*||[^|]*||[^A-Z]\)\([A-Za-z]*\)/\1[[\2 (surname)|]]\3 | + | <pre>sed -i 's/\([^A-Z]*\)\([^,]*\)\(,[^|]*||[^|]*||[^|]*||[^A-Z]\)\([A-Za-z]*\)/\1[[\2 (surname)|]]\3[[\4]]/'</pre> |
Revision as of 13:19, 27 February 2014
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]]/'