#!/bin/bash set -uo pipefail H='Host: antiguo.feadulta.com' for u in /anterior /anterior/ /anterior/index.html /anterior/index.htm /docs/ /music/; do printf '%-26s ' "$u" curl -s -o /dev/null -w 'code=%{http_code} size=%{size_download} loc=%{redirect_url}\n' -H "$H" "http://127.0.0.1:8086$u" done echo "--- ficheros indice en /anterior ---" ls /home/rafa/joomla-migration/mirror-antiguo/restore/web/anterior/ | grep -iE '^(index|default|home)\.' | head echo "--- php dentro de /anterior ---" find /home/rafa/joomla-migration/mirror-antiguo/restore/web/anterior -iname '*.php'