diff --git a/bin/perlsubstitutions.sh b/bin/perlsubstitutions.sh new file mode 100644 index 0000000..fa1821c --- /dev/null +++ b/bin/perlsubstitutions.sh @@ -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/</