Created
January 5, 2013 22:11
-
-
Save timverhaegh/4463973 to your computer and use it in GitHub Desktop.
Ausgabe der aktuellen WestLotto 6aus49 Gewinnzahlen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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