#!/bin/sh set -eu main() { echo '' echo '' echo 'https://purplebored.pl/1.0' find pages/ blog/ -name '*.xhtml' -not -name 'template.xhtml' | while read -r file; do echo "https://purplebored.pl/${file}1.0" done echo '' } main >sitemap.xml