Difference between revisions of "Ministers performing marriages"
Jump to navigation
Jump to search
m ('Neal -> O'Neal) |
|||
Line 1: | Line 1: | ||
− | + | For my own reference, sed one-liners to help with the Genealogy Wikification Project: | |
− | + | ==Tables== | |
− | + | Here we identify and wikify surnames located in the first column of a wikitext table: | |
− | + | <pre>sed -i 's/\([^A-Z]*\)\([^,]*\),/\1[[\2 (surname)|]],/' tmp.txt</pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Turn 4th column to wiki link: | |
− | + | <pre>sed -i 's/\(||.*||.*||.*||[^A-Za-z]*\)\(.*\)/\1[[\2]]/' tmp.txt</pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ | + | Wikification of minister tables: |
+ | <pre>sed -i 's/\([^A-Z]*\)\([^,]*\)\(,[^|]*||[^|]*||[^|]*||[^A-Z]\)\([A-Za-z]*\)/\1[[\2 (surname)|]]\3[[\4]]/'</pre> |
Revision as of 11:42, 28 February 2014
For my own reference, sed one-liners to help with the Genealogy Wikification Project:
Tables
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
Turn 4th column to wiki link:
sed -i 's/\(||.*||.*||.*||[^A-Za-z]*\)\(.*\)/\1[[\2]]/' tmp.txt
Wikification of minister tables:
sed -i 's/\([^A-Z]*\)\([^,]*\)\(,[^|]*||[^|]*||[^|]*||[^A-Z]\)\([A-Za-z]*\)/\1[[\2 (surname)|]]\3[[\4]]/'