Skip to content

Instantly share code, notes, and snippets.

@timverhaegh
Created January 5, 2013 22:11
Show Gist options
  • Save timverhaegh/4463973 to your computer and use it in GitHub Desktop.
Save timverhaegh/4463973 to your computer and use it in GitHub Desktop.
Ausgabe der aktuellen WestLotto 6aus49 Gewinnzahlen.
#!/usr/bin/env bash
URL="http://www.ergebnisse.westlotto.de/gewinnzahlen/lottozahlen.rss"
MSG="LOTTO 6aus49 Gewinnzahlen `curl -s ${URL} | egrep '<title>.*:' | sed s/.*\<title\>// | sed 's/<\/title>/; /' | sed 'N;N;s/\n//g' | sed 's/; $//'`"
echo "${MSG}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment