Skip to content

Instantly share code, notes, and snippets.

@Fil
Created Aug 26, 2014
Embed
What would you like to do?
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