#!/bin/bash set -uo pipefail BASE=/home/rafa/joomla-migration/mirror-antiguo RUN=$(cat "$BASE/CURRENT_RUN") S=$BASE/runs/$RUN/site/antiguo.feadulta.com R=$BASE/runs/$RUN/raw/antiguo.feadulta.com echo "=== site/ (derivado) ===" printf 'connect.facebook.net : %s\n' "$(grep -rl 'connect.facebook.net' "$S" 2>/dev/null | wc -l)" printf 'platform.twitter.com : %s\n' "$(grep -rl 'platform.twitter.com' "$S" 2>/dev/null | wc -l)" printf 'itemSocialSharing : %s\n' "$(grep -rl 'itemSocialSharing' "$S" 2>/dev/null | wc -l)" printf 'fb-root : %s\n' "$(grep -rl 'fb-root' "$S" 2>/dev/null | wc -l)" echo echo "=== raw/ (intacto, debe seguir teniendolos) ===" printf 'connect.facebook.net : %s\n' "$(grep -rl 'connect.facebook.net' "$R" 2>/dev/null | wc -l)" echo echo "=== restos si los hay ===" grep -rl 'connect.facebook.net\|platform.twitter.com' "$S" 2>/dev/null | head -5