# when running bash wikitoprint.sh [wiki page title here] -- will be variable in script ($1 means get first word after script name) WIKIPAGE=$1 OUTPUT="" # Download a wikipage in HTML curl https://pzwiki.wdka.nl/mediadesign/$WIKIPAGE?action=render > $OUTPUT.html # Change the links in the images sed -i "s/\/mw-mediadesign/https:\/\/pzwiki.wdka.nl\/mw-mediadesign/g" $OUTPUT.html # Add stylesheet(s) pandoc \ --standalone \ --css screen.css \ --css print.css \ $OUTPUT.html \ --output $OUTPUT.html