From 2b177b78b4c710896b050176180b82f3fb2442ed Mon Sep 17 00:00:00 2001 From: peteyboy Date: Fri, 12 Mar 2021 00:51:36 +0000 Subject: [PATCH] Adding a shell script record of the one-liners that were run on the dump folder --- bin/perlsubstitutions.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bin/perlsubstitutions.sh 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/</