Adding a shell script record of the one-liners that were run on the dump folder

This commit is contained in:
peteyboy 2021-03-12 00:51:36 +00:00
parent 425b577c21
commit 2b177b78b4
1 changed files with 14 additions and 0 deletions

14
bin/perlsubstitutions.sh Normal file
View File

@ -0,0 +1,14 @@
#/usr/bin/bash
#These were run one at a time, but keeping record to be reconstitutable by running against original dump folder
#remove front half of bad leftover anchor links
for i in *.html.docuwiki; do perl -pi -e "s/\[\[\|//g" $i; done
#remove back half of bad leftover anchor links
for i in *.html.docuwiki; do perl -pi -e "s/\]\] =/ =/g" $i; done
#de-escape >
for i in *.html.docuwiki; do perl -pi -e "s/>/>/g" $i; done
#de-escape <
for i in *.html.docuwiki; do perl -pi -e "s/&lt;/</g" $i; done