2017-01-23 2 views

Répondre

0

Déballez Votre fichier ods (il est une archive zip) et exécutez le script suivant (Appelons il linkFinder):

#!/bin/bash 
urls=$(for f in `find -type f`; do grep xlink:href=\"[^\"]*\" -o $f | cut -c 13- | sed 's/.$//'; done); 

for url in $urls; 
do 
    wget -q --spider $url; 
    if [ $? -eq 0 ]; then 
    echo $url works 
    else 
    echo $url broken 
    fi 
done 

Exemple:

$ ./../linkFinder.sh 
http://google.pl/ works 
http://notexistingdomainforreal.com/ broken