1 2 3 4 5 6 7
#!/bin/zsh set -e for f in ./build/**/*.html ./build/*.html; do sed -i 's/<!--\[-->//g' "$f" sed -i 's/<!--\]-->//g' "$f" sed -i 's/<!---->//g' "$f" done