#!/bin/sh set -ex for i in $(find . -name *.html) do t=$(mktemp) htmlq --remove-nodes .katex-html < $i > $t mv $t $i done