Hello guys,
I'm writing a little script which sends me sms with my shell script via api of a sms provider.
problem is I can't filter my curl output for this site:
site url:
http://fahrplan.oebb.at/bin/query.exe/dn?start=1&_charset=UTF-8&REQ0JourneyProduct_list=0:1111111111011000-000000.&SALL=1&ZALL=1&scotty_advancedSearchMode=0&S=mureck&Z=graz%20puntigam&REQ0JourneyDate=21.08.2014&time=04:00&timeSel=depart
this is what i got so far, but I don't know how to filter everything out, I just want the times and also only the "ab time" like
#!/bin/bash
URL='http://fahrplan.oebb.at/bin/query.exe/dn?start=1&_charset=UTF-8&REQ0JourneyProduct_list=0:1111111111011000-000000.&SALL=1&ZALL=1&scotty_advancedSearchMode=0&S=mureck&Z=graz%20puntigam&REQ0JourneyDate=21.08.2014&time=04:00&timeSel=depart'
echo "Now:" `date +%H:%M:%S`
for URL in $URLS; do
echo "$URL:" | sed 's/.*=.*=/Route /'
curl -s $URL \
done
cheers