Created
August 26, 2014 10:10
-
-
Save Fil/7b9b67efe6244b4f1a26 to your computer and use it in GitHub Desktop.
livraison mondialisation apple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
bon=$1 | |
( | |
echo "stage,time,place,lat,lon" && | |
( | |
lynx -dump "http://www.tnt.fr/public/suivi_colis/recherche/visubontransport.do?bonTransport=$bon" \ | |
| sed 's/^\(.*\) \([0-9][0-9].[0-9][0-9].2014 ..:..\) \(.*\)/\1,\2,\3/' \ | |
2>/dev/null \ | |
| grep "/201[0-9] " | |
) \ | |
| while read i | |
do | |
j=`echo $i | awk -F, '{print $3}'` | |
echo $i,`geotools --no-ansi geocoder:geocode "$j"` | |
done | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment