Skip to content

Instantly share code, notes, and snippets.

@Fil
Created August 26, 2014 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fil/7b9b67efe6244b4f1a26 to your computer and use it in GitHub Desktop.
Save Fil/7b9b67efe6244b4f1a26 to your computer and use it in GitHub Desktop.
livraison mondialisation apple
#! /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