You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#! /usr/bin/env bash
|
|
|
|
if [ $# -lt 2 ]
|
|
|
|
then
|
|
|
|
echo 'usage ratp_now "la varenne-chennevieres (RER)" "gare de l est (SNCF), paris"'
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
|
|
|
DATE=`date +%Y-%m-%d`
|
|
|
|
TIME=`date +%H:%M`
|
|
|
|
START=`echo $1|tr " " "+"`
|
|
|
|
END=`echo $2|tr " " "+"`
|
|
|
|
|
|
|
|
# replace by xdg-open or directly by your browser (e.g. firefox --new-tab) if required
|
|
|
|
sensible-browser http://www.ratp.fr/itineraires/fr/ratp/resultat-simple/$START/$END/is_date_start/1/date/$DATE/time/$TIME/route_type/plus_rapide
|