html-dir-index HTML-based directory index. The generate.sh script can be used like this: Bash1find test -type d -print -exec bash -ec 'bash '"${PWD@Q}"'/generate.sh '"${PWD@Q}"'/template.html "$1" "/$1" > "$1/index.html"' _ {} \;