diff --git a/archive-sources/flex-menu/boerse/boerse.sh b/archive-sources/flex-menu/boerse/boerse.sh deleted file mode 100644 index f73da8d6..00000000 --- a/archive-sources/flex-menu/boerse/boerse.sh +++ /dev/null @@ -1,127 +0,0 @@ -#!/bin/sh -# Boerse Plugin -# by theobald123 for coolstream -# VERSION=1.3 - -# ************************************************************************************* -# * Datenzeile in einzelne Parameter aufteilen * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter : Datenzeile * -# ************************************************************************************* -Parameter () -{ pn=$#;p1=$1;p2=$2;p3=$3;p4=$4;p5=$5;p6=$6;p7=$7;p8=$8;p9=$9;p10=$10; } - -# ************************************************************************************* -# * exit-Steuerung * -# ************************************************************************************* -Beenden () -{ -if [ $? = 0 ]; then - break -fi -} - -# ************************************************************************************* -# * Zeichen ersetzen, HTML-Tags entfernen, Leerzeilen entfernen * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter : Eingabedatei Ausgabedatei * -# ************************************************************************************* -Substitution () -{ -sed -e 's/ä/ä/g' -e 's/ä/ä/g' -e 's/ä/ä/g' \ - -e 's/ö/ö/g' -e 's/ö/ö/g' -e 's/ö/ö/g' \ - -e 's/ü/ü/g' -e 's/ü/ü/g' -e 's/ü/ü/g' \ - -e 's/Ä/Ä/g' -e 's/Ä/Ä/g' -e 's/Ä/Ä/g' \ - -e 's/Ö/Ö/g' -e 's/Ö/Ö/g' -e 's/Ö/Ö/g' \ - -e 's/Ãœ/Ü/g' -e 's/Ü/Ü/g' -e 's/Ü/Ü/g' \ - -e 's/ß/ß/g' -e 's/ß/ß/g' -e 's/ß/ß/g' \ - -e 's/ss¡/+/g' \ - -e 's/é/e/g' -e 's/é/e/g' \ - -e 's/0/0/g' -e 's/1/1/g' -e 's/2/2/g' -e 's/3/3/g' -e 's/4/4/g' -e 's/5/5/g' -e 's/6/6/g' -e 's/7/7/g' -e 's/8/8/g' -e 's/9/9/g' \ - -e 's/A/A/g' -e 's/B/B/g' -e 's/C/C/g' -e 's/D/D/g' -e 's/E/E/g' -e 's/F/F/g' -e 's/G/G/g' -e 's/H/H/g' -e 's/I/I/g' -e 's/J/J/g' -e 's/K/K/g' -e 's/L/L/g' -e 's/M/M/g' -e 's/N/N/g' -e 's/O/O/g' -e 's/P/P/g' -e 's/Q/Q/g' -e 's/R/R/g' -e 's/S/S/g' -e 's/T/T/g' -e 's/U/U/g' -e 's/V/V/g' -e 's/W/W/g' -e 's/X/X/g' -e 's/Y/Y/g' -e 's/Z/Z/g' \ - -e 's/a/a/g' -e 's/b/b/g' -e 's/c/c/g' -e 's/d/d/g' -e 's/e/e/g' -e 's/f/f/g' -e 's/g/g/g' -e 's/h/h/g' -e 's/i/i/g' -e 's/j/j/g' -e 's/k/k/g' -e 's/l/l/g' -e 's/m/m/g' -e 's/n/n/g' -e 's/o/o/g' -e 's/p/p/g' -e 's/q/q/g' -e 's/r/r/g' -e 's/s/s/g' -e 's/t/t/g' -e 's/u/u/g' -e 's/v/v/g' -e 's/w/w/g' -e 's/x/x/g' -e 's/y/y/g' -e 's/z/z/g' \ - -e 's/°/°/g' -e 's/°/°/g' \ - -e 's/&/\&/g' \ - -e 's/>/>/g' \ - -e 's/<// /g' \ - -e 's/<[^>]*>//g' \ - -e '/^[^0-9a-zA-Z!-\/]*$/d' \ - $1 > $2 -} - -while :; do -# *-----------------------------------------------------------------------------------* -# * Index anfordern * -# *-----------------------------------------------------------------------------------* - auswahl=1 - while :; do - msgbox title="Indexauswahl" size=28 order=1 msg="~cBitte ausw~ahlen!" select="DAX,SDAX,MDAX,TecDAX" default=$auswahl - auswahl=$? - case $auswahl in - 1) - Index=159096 - ;; - 2) - Index=159191 - ;; - 3) - Index=159090 - ;; - 4) - Index=158375 - ;; - *) - exit - ;; - esac - wget -O /tmp/boerse.txt "http://kurse.boerse.ard.de/ard/indizes_einzelkurs_uebersicht.htn?u=5534156&i=$Index&sektion=einzelwerte" - Substitution /tmp/boerse.txt /tmp/boerse1.txt - -# *-----------------------------------------------------------------------------------* -# * Daten auswählen und Liste aufbauen * -# *-----------------------------------------------------------------------------------* - Anfang=`sed -n -e "/Bezeichnung/ =" /tmp/boerse1.txt`; Anfang=`expr "$Anfang" + 1` - Ende=`sed -n -e "/Performance/ =" /tmp/boerse1.txt`; Parameter $Ende; Ende=$p2 - tab1=$Anfang; tab2=`expr "$Anfang" + 1`; tab3=`expr "$Anfang" + 2`; tab4=`expr "$Anfang" + 3`; tab5=`expr "$Anfang" + 4`; tab6=`expr "$Anfang" + 5`; step=7 - a1=`sed -n -e "$tab1"p /tmp/boerse1.txt`; a1=`echo $a1` # Bezeichnung - a2=`sed -n -e "$tab2"p /tmp/boerse1.txt`; a2=`echo $a2` # aktuell - Head="$a1 : $a2" - tab1=`expr "$tab1" + $step`; tab2=`expr "$tab2" + $step`; tab3=`expr "$tab3" + $step`; tab4=`expr "$tab4" + $step`; tab5=`expr "$tab5" + $step`; tab6=`expr "$tab6" + $step` - while [ "$tab6" -lt "$Ende" ]; do - count=1 - echo ~T0100Bezeichnung~T0500aktuell~T0650+/-~T0750%~T0850Zeit~T0950Umsatz in EUR > /tmp/boerse2.txt - while [ $count -le 10 -a "$tab6" -le "$Ende" ]; do - a1=`sed -n -e "$tab1"p /tmp/boerse1.txt`; a1=`echo $a1` # Bezeichnung - a2=`sed -n -e "$tab2"p /tmp/boerse1.txt`; a2=`echo $a2` # aktuell - a3=`sed -n -e "$tab3"p /tmp/boerse1.txt`; a3=`echo $a3` # +/- - a4=`sed -n -e "$tab4"p /tmp/boerse1.txt`; a4=`echo $a4` # % - a5=`sed -n -e "$tab5"p /tmp/boerse1.txt`; a5=`echo $a5` # Zeit - a6=`sed -n -e "$tab6"p /tmp/boerse1.txt`; a6=`echo $a6` # Umsatz - echo ~T0100$a1~T0500$a2~T0650$a3~T0750$a4~T0850$a5~T0950$a6 >> /tmp/boerse2.txt - count=`expr "$count" + 1` - tab1=`expr "$tab1" + $step`; tab2=`expr "$tab2" + $step`; tab3=`expr "$tab3" + $step`; tab4=`expr "$tab4" + $step`; tab5=`expr "$tab5" + $step`; tab6=`expr "$tab6" + $step` - done - -# *-----------------------------------------------------------------------------------* -# * Daten ausgeben (Framebuffer) * -# *-----------------------------------------------------------------------------------* - - if [ $tab6 -le $Ende ] ; then - msgbox title="$Head" size=26 timeout=180 msg=/tmp/boerse2.txt - else - msgbox title="$Head" size=26 timeout=180 popup=/tmp/boerse2.txt - fi - Beenden - done - done -done - -# *-----------------------------------------------------------------------------------* -# * TMP-Dateien loeschen * -# *-----------------------------------------------------------------------------------* -rm /tmp/boerse*.txt - diff --git a/archive-sources/flex-menu/boerse/flex_entry.conf b/archive-sources/flex-menu/boerse/flex_entry.conf deleted file mode 100644 index fc0422db..00000000 --- a/archive-sources/flex-menu/boerse/flex_entry.conf +++ /dev/null @@ -1 +0,0 @@ -ACTION=&B~orse,/share/tuxbox/neutrino/plugins/boerse.sh diff --git a/archive-sources/flex-menu/del/DEL b/archive-sources/flex-menu/del/DEL deleted file mode 100644 index 8e13ac37..00000000 --- a/archive-sources/flex-menu/del/DEL +++ /dev/null @@ -1,193 +0,0 @@ -#! /bin/sh -# DEL - Liveticker in Messagebox anzeigen -# by theobald123 -# Version: 2.0 Coolstream HD1 - -# ************************************************************************************* -# * Funktion zur Anzeige der Ergebnisse * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter 1: Anzeigedateiname * -# * Übergabeparameter 2: Fontgröße für Anzeige * -# ************************************************************************************* - -Ergebnisse () -{ - #Ergebnisse anzeigen - cp $1 /tmp/anzeige_neu.txt - if [ $msg_on -eq 0 ]; then - if [ $aktu -eq 1 ]; then - msgbox title="$Head" size=$2 timeout=-1 popup=/tmp/anzeige_neu.txt & - else - msgbox title="$Head" size=$2 msg=/tmp/anzeige_neu.txt - #TMP-Dateien loeschen - rm /tmp/anzeige_*.txt - rm /tmp/tabelle.txt - rm /tmp/tore.txt - rm /tmp/result.txt - ende=1 - wait=0 - fi - fi - - #neue Ergebnisse einblenden - if [ $new1 -gt 0 ]; then - rm /tmp/.msgbox_hidden - killall msgbox - msgbox title="$Head" size=$2 timeout=-1 popup=/tmp/anzeige_neu.txt & - fi - - #Wartezeit bis zum Refresh - if [ $ende -eq 0 ]; then - while [ $timer -le $wait ]; do - if pidof msgbox > /dev/null; then #Messagebox aktiv? - msg_on=1 - else - #TMP-Dateien loeschen - rm /tmp/anzeige_*.txt - rm /tmp/tabelle.txt - rm /tmp/tore.txt - rm /tmp/result.txt - ende=1 - wait=0 - fi - if [ -e /tmp/.msgbox_hidden ]; then #Messagebox ausgeblendet - if [ $copy -eq 0 ]; then #Alte Daten kopiert? - cp /tmp/tore.txt /tmp/anzeige_alt.txt - echo Messagebox ausgeblendet - copy=1 - fi - else - copy=0 - fi - sleep 1 - timer=`expr "$timer" + 1` - done - fi - timer=0 -} - -# ************************************************************************************* -# * Funktion zum Erstellen der DEL-Ergebnisse * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter 1: Internet-Adresse * -# ************************************************************************************* - -DEL () -{ -Head="aktueller Spieltag" -ende=0 -while [ $ende -eq 0 ]; do - #Spielpaarungen und Ergebnisse auslesen - wget -q -O - $1 \ - | sed -n "/

Livescores<\/h3>/,/daten-dashboard/ p" \ - | sed -e 's/]*>//g' \ - -e 's/\n//g' \ - -e 's/ä/ä/g' -e 's/ä/ä/g' -e 's/ä/ä/g' \ - -e 's/ö/ö/g' -e 's/ö/ö/g' -e 's/ö/ö/g' \ - -e 's/ü/ü/g' -e 's/ü/ü/g' -e 's/ü/ü/g' \ - -e '/^[^0-9a-zA-Z!-\/|]*$/d' \ - -e '/Livescores/d' > /tmp/tore.txt - - Zeilen=`sed -n -e "$ =" /tmp/tore.txt` #Anzahl Zeilen - - #Spielpaarungen und Ergebnisse auslesen - rm /tmp/result.txt - tab1=2; tab2=3; step=3; new1=0 - while [ $tab2 -le $Zeilen ]; do #Anzahl Spiele schreiben - a1=`sed -n "$tab1"p /tmp/tore.txt | sed -e 's/|.*$//g'` #Heimmannschaft - a2=`sed -n "$tab1"p /tmp/tore.txt | sed -e 's/^.*|//g'` #Heimtore - a3=`sed -n "$tab2"p /tmp/tore.txt | sed -e 's/|.*$//g'` #Gastmannschaft - a4=`sed -n "$tab2"p /tmp/tore.txt | sed -e 's/^.*|//g'` #Gasttore - a5=" " - if [ -e /tmp/anzeige_alt.txt ]; then #Wenn Datei "anzeige_alt.txt" vorhanden - b2=`sed -n "$tab1"p /tmp/anzeige_alt.txt | sed -e 's/^.*|//g'` #Lese alte Heimtore - b4=`sed -n "$tab2"p /tmp/anzeige_alt.txt | sed -e 's/^.*|//g'` #Lese alte Gasttore - if [ "$a2" != "$b2" -o "$a4" != "$b4" ]; then #Wenn neu ungleich alt - a5=~T0870NEU! - new1=`expr "$new1" + 1` - else - a5=~T0870 - fi - fi - echo "~T0200$a1~T0485-~T0490$a3~T0800$a2 : $a4$a5" >> /tmp/result.txt #Ergebniszeile ausgeben - tab1=`expr "$tab1" + $step`; tab2=`expr "$tab2" + $step`; - done - Ergebnisse /tmp/result.txt 22 -done -} - -# ************************************************************************************* -# * Funktion zum Erstellen der DEL-Tabelle * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter 1: Internet-Adresse * -# ************************************************************************************* - -DELTabelle () -{ -Head="DEL-Tabelle" -TABURL=`wget -q -O - $1 | grep Tabelle | grep href | grep statistiken | sed -e 's/^.*href="//g' | sed -e 's/.html.*$/.html/'` -wget -q -O - $1$TABURL | \ -sed -n "/

Tabelle<\/h3>/,/legende/ p" | \ -sed -e 's/ //g' \ - -e 's/<[^>]*>//g' \ - -e 's/\n//g' \ - -e 's/ä/ä/g' -e 's/ä/ä/g' -e 's/ä/ä/g' \ - -e 's/ö/ö/g' -e 's/ö/ö/g' -e 's/ö/ö/g' \ - -e 's/ü/ü/g' -e 's/ü/ü/g' -e 's/ü/ü/g' \ - -e '/^[^0-9a-zA-Z!-\/|]*$/d' \ - -e '/Tabelle/d' > /tmp/tabelle.txt #HTML-Tags entfernen; Sonderzeichen ersetzen -Zeilen=`sed -n -e "$ =" /tmp/tabelle.txt` #Anzahl Zeilen -tab1=16; tab2=17; tab3=18; tab4=25; tab5=27; tab6=28; step=16 - -echo ~T0250Platz~T0305Verein~T0550Spiele~T0620Tore~T0710Punkte > /tmp/result.txt -while [ $tab6 -le $Zeilen ]; do - a1=`sed -n "$tab1"p /tmp/tabelle.txt` #Platz - a2=`sed -n "$tab2"p /tmp/tabelle.txt` #Mannschaft - a3=`sed -n "$tab3"p /tmp/tabelle.txt` #Spiele - a4=`sed -n "$tab4"p /tmp/tabelle.txt` #Punkte - a5=`sed -n "$tab5"p /tmp/tabelle.txt` #Tore - a6=`sed -n "$tab6"p /tmp/tabelle.txt` #Gegentore - - echo ~T0250$a1~T0300$a2~T0560$a3~T0610$a5~T0650: $a6~T0720$a4 >> /tmp/result.txt - tab1=`expr "$tab1" + $step`; tab2=`expr "$tab2" + $step`; tab3=`expr "$tab3" + $step`; tab4=`expr "$tab4" + $step`; tab5=`expr "$tab5" + $step`; tab6=`expr "$tab6" + $step` -done -msgbox title="$Head" size=22 timeout=600 popup=/tmp/result.txt #Tabelle anzeigen -} - -auswahl=1 -while true; do - new1=0 - new2=0 - refresh=1 - msg_on=0 - timer=0 - wait=20 - copy=0 - aktu=1 #Bei 1 ist automatische Aktualisierung ein - - msgbox title="DEL" size=28 order=2 msg="~cBitte ausw~ahlen!" select="Spiele,Tabelle" default=$auswahl - auswahl=$? - - case $auswahl in - 1) - DEL "http://www.del.org" - ;; - - 2) - DELTabelle "http://www.del.org" - ;; - - *) - #TMP-Dateien loeschen - rm /tmp/anzeige_*.txt - rm /tmp/tabelle.txt - rm /tmp/tore.txt - rm /tmp/result.txt - exit - ;; - - esac -done - -exit diff --git a/archive-sources/flex-menu/del/flex_entry.conf b/archive-sources/flex-menu/del/flex_entry.conf deleted file mode 100644 index 638d8fc8..00000000 --- a/archive-sources/flex-menu/del/flex_entry.conf +++ /dev/null @@ -1 +0,0 @@ -ACTION=&Deutsche Eishockey Liga,/share/tuxbox/neutrino/plugins/DEL diff --git a/archive-sources/flex-menu/fahrplan/fahrplan b/archive-sources/flex-menu/fahrplan/fahrplan deleted file mode 100644 index 1b521ff6..00000000 --- a/archive-sources/flex-menu/fahrplan/fahrplan +++ /dev/null @@ -1,197 +0,0 @@ -#! /bin/sh -# Haltestellenfahrplan anzeigen -# by theobald123 -# Version: 2.1 Coolstream HD1 - -# ************************************************************************************* -# * Datenzeile in einzelne Parameter aufteilen * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter : Datenzeile * -# ************************************************************************************* -Parameter () -{ pn=$#;p1=$1;p2=$2;p3=$3;p4=$4;p5=$5;p6=$6;p7=$7;p8=$8;p9=$9;p10=$10; } - -# ************************************************************************************* -# * Zeichen ersetzen, HTML-Tags entfernen, Leerzeilen entfernen * -# *-----------------------------------------------------------------------------------* -# * Übergabeparameter : Eingabedatei Ausgabedatei * -# ************************************************************************************* -Substitution () -{ -sed -e 's/ä/ä/g' -e 's/ä/ä/g' -e 's/ä/ä/g' -e 's/ä/ä/g' \ - -e 's/ö/ö/g' -e 's/ö/ö/g' -e 's/ö/ö/g' -e 's/ö/ö/g' \ - -e 's/ü/ü/g' -e 's/ü/ü/g' -e 's/ü/ü/g' -e 's/ü/ü/g' \ - -e 's/Ä/Ä/g' -e 's/Ä/Ä/g' -e 's/Ä/Ä/g' -e 's/Ä/Ä/g' \ - -e 's/Ö/Ö/g' -e 's/Ö/Ö/g' -e 's/Ö/Ö/g' -e 's/Ö/Ö/g' \ - -e 's/Ãœ/Ü/g' -e 's/Ü/Ü/g' -e 's/Ü/Ü/g' -e 's/Ü/Ü/g' \ - -e 's/à/a/g' -e 's/á/a/g' -e 's/â/a/g' -e 's/ã/a/g' -e 's/å/a/g' -e 's/æ/ae/g' \ - -e 's/à/a/g' -e 's/á/a/g' -e 's/â/a/g' -e 's/ã/a/g' -e 's/å/a/g' -e 's/æ/ae/g' \ - -e 's/À/A/g' -e 's/Á/A/g' -e 's/Â/A/g' -e 's/Ã/A/g' -e 's/Å/A/g' -e 's/Æ/AE/g' \ - -e 's/À/A/g' -e 's/Á/A/g' -e 's/Â/A/g' -e 's/Ã/A/g' -e 's/Å/A/g' -e 's/Æ/AE/g' \ - -e 's/ç/c/g' -e 's/ç/c/g' \ - -e 's/Ç/C/g' -e 's/Ç/C/g' \ - -e 's/è/e/g' -e 's/é/e/g' -e 's/ê/e/g' -e 's/ë/e/g' \ - -e 's/è/e/g' -e 's/é/e/g' -e 's/ê/e/g' -e 's/ë/e/g' \ - -e 's/È/E/g' -e 's/É/E/g' -e 's/Ê/E/g' -e 's/Ë/E/g' \ - -e 's/È/E/g' -e 's/É/E/g' -e 's/Ê/E/g' -e 's/Ë/E/g' \ - -e 's/ì/i/g' -e 's/í/i/g' -e 's/î/i/g' -e 's/ï/i/g' \ - -e 's/ì/i/g' -e 's/í/i/g' -e 's/î/i/g' -e 's/ï/i/g' \ - -e 's/Ì/I/g' -e 's/Í/I/g' -e 's/Î/I/g' -e 's/Ï/I/g' \ - -e 's/Ì/I/g' -e 's/Í/I/g' -e 's/Î/I/g' -e 's/Ï/I/g' \ - -e 's/ñ/n/g' -e 's/ñ/n/g' \ - -e 's/Ñ/N/g' -e 's/Ñ/N/g' \ - -e 's/ò/o/g' -e 's/ó/o/g' -e 's/ô/o/g' -e 's/õ/o/g' -e 's/ø/o/g' \ - -e 's/ò/o/g' -e 's/ó/o/g' -e 's/ô/o/g' -e 's/õ/o/g' -e 's/ø/o/g' \ - -e 's/Ò/O/g' -e 's/Ó/O/g' -e 's/Ô/O/g' -e 's/Õ/O/g' -e 's/Ø/O/g' \ - -e 's/Ò/O/g' -e 's/Ó/O/g' -e 's/Ô/O/g' -e 's/Õ/O/g' -e 's/×/O/g' \ - -e 's/ù/u/g' -e 's/ú/u/g' -e 's/û/u/g' \ - -e 's/ù/u/g' -e 's/ú/u/g' -e 's/û/u/g' \ - -e 's/ý/y/g' -e 's/ý/y/g' \ - -e 's/Ù/U/g' -e 's/Ú/U/g' -e 's/Û/U/g' \ - -e 's/Ø/U/g' -e 's/Ù/U/g' -e 's/Ú/U/g' \ - -e 's/Ü/Y/g' -e 's/Ý/Y/g' \ - -e 's/ß/ß/g' -e 's/ß/ß/g' -e 's/ß/ß/g' -e 's/ß/ß/g' \ - -e 's/ss¡/+/g' -e 's/„//g' -e 's/“//g' \ - -e 's/é/e/g' -e 's/é/e/g' -e 's/É/E/g' -e 's/á/a/g' -e 's/î/i/g' -e 's/ñ/n/g' \ - -e 's/0/0/g' -e 's/1/1/g' -e 's/2/2/g' -e 's/3/3/g' -e 's/4/4/g' -e 's/5/5/g' -e 's/6/6/g' -e 's/7/7/g' -e 's/8/8/g' -e 's/9/9/g' \ - -e 's/A/A/g' -e 's/B/B/g' -e 's/C/C/g' -e 's/D/D/g' -e 's/E/E/g' -e 's/F/F/g' -e 's/G/G/g' -e 's/H/H/g' -e 's/I/I/g' -e 's/J/J/g' -e 's/K/K/g' -e 's/L/L/g' -e 's/M/M/g' -e 's/N/N/g' -e 's/O/O/g' -e 's/P/P/g' -e 's/Q/Q/g' -e 's/R/R/g' -e 's/S/S/g' -e 's/T/T/g' -e 's/U/U/g' -e 's/V/V/g' -e 's/W/W/g' -e 's/X/X/g' -e 's/Y/Y/g' -e 's/Z/Z/g' \ - -e 's/a/a/g' -e 's/b/b/g' -e 's/c/c/g' -e 's/d/d/g' -e 's/e/e/g' -e 's/f/f/g' -e 's/g/g/g' -e 's/h/h/g' -e 's/i/i/g' -e 's/j/j/g' -e 's/k/k/g' -e 's/l/l/g' -e 's/m/m/g' -e 's/n/n/g' -e 's/o/o/g' -e 's/p/p/g' -e 's/q/q/g' -e 's/r/r/g' -e 's/s/s/g' -e 's/t/t/g' -e 's/u/u/g' -e 's/v/v/g' -e 's/w/w/g' -e 's/x/x/g' -e 's/y/y/g' -e 's/z/z/g' \ - -e 's/°/°/g' -e 's/°/°/g' -e 's/°/°/g' \ - -e 's/&/\&/g' \ - -e 's/"/\"/g' -e 's/„/\"/g' -e 's/“/\"/g' -e "s/'/\"/g" -e 's/'/\"/g' \ - -e 's/>/>/g' \ - -e 's/<// /g' \ - -e 's/<[^>]*>//g' \ - -e '/^[^0-9a-zA-Z!-\/]*$/d' \ - $1 > $2 -} - -# ************************************************************************************* -# * Einlesen Haltestellenname * -# ************************************************************************************* -getStation () -{ - conf=/var/tuxbox/config/Haltestelle.input - - if [ -s $conf ] ; then - Station=`cat "$conf"` - else - Station=" " - fi - Station=`input l='@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' t='Haltestelle' d="$Station" c=20 k=1` - Station=`echo "$Station"` - if [ "$Station" != "" ] ; then - echo $Station > $conf - echo $Station > /tmp/Fahrplan.data - sed -e 's/ /%20/g' /tmp/Fahrplan.data > /tmp/Fahrplan1.data - Station=`cat "/tmp/Fahrplan1.data"` - else - exit - fi -} - -# ************************************************************************************* -# * Haltestelle ermitteln * -# ************************************************************************************* -getHaltestelle () -{ - rm /tmp/fahrplan5.data - sed -n "/