MediaWiki HSL Migration: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
<pre> | <pre> | ||
a href="/wiki/File:01mendel-ABS_solid-bed-height-spacer-31m.jpg" | a href="/wiki/File:01mendel-ABS_solid-bed-height-spacer-31m.jpg" | ||
</pre> | |||
<pre> | |||
perl -ne 'print "$2\n" while m|a href="(File:[^"]*)"|g' < files-01.html | |||
</pre> | </pre> |
Revision as of 22:39, 30 March 2024
2024-03-30 Attempt
Fixing Broken Categories
cd /var/www/mediawiki/maintenance/ php update.php # this didn't do it php rebuildall.php # this worked
Perl Regex for Page Names
perl -ne 'print "$2\n" while m|<a href="[^"]*"( class="mw-redirect")* title="[^"]*">([^<>]*)</|g' < pages-02.html
Perl Regex for File Links
a href="/wiki/File:01mendel-ABS_solid-bed-height-spacer-31m.jpg"
perl -ne 'print "$2\n" while m|a href="(File:[^"]*)"|g' < files-01.html