--------------------------------Linux Guide---------------------------------- by Ingo Blechschmidt (c) 2002 ----------------------------------------------------------------------------- ------------------------- Vokabeln lernen mit xterm ------------------------- Die Jul 17 14:25:58 MEST 2001 ------------------------- Vokabeln xterm lernen pauken rekursiv Errinerung Termine 70x1 1x70 ein-zeilig ----------------------------------------------------------------------------- Sie wollen, dass Ihr Computer Ihnen beim Vokabelpauken hilft, aber nicht auf die übliche Abfrage-Art. ----------------------------------------------------------------------------- Das Skript, siehe <"down/lernen.sh">Download: --------CODE--------: lernen.sh #!/bin/bash # lernen.sh - Hilft beim Vokabeln Lernen # Copyright (C) Die Jul 17 14:25:58 MEST 2001 by Ingo Blechschmidt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Ingo Blechschmidt # Arberstraße 5 # 86179 Augsburg # E-Mail: iblech@web.de, http://www.way.to/uselinux/ # Tel.: +49 / 821 882955 # # if [ ! "$1" = "x" ]; then /usr/X11R6/bin/xterm -geometry 70x1+256+9 -bg red -fg yellow -e $0 x & exit 0 fi while true; do cat ~/lernen.dat | { while read; do echo -n $REPLY sleep 10 echo done } done exit 0 --------/CODE-------- Das Skript ruft sich selbst nochmal auf (rekursiv, errinert mich an meine DOS-Zeit, wo man, wenn man einigermaßen vernünftige Batches (=Skripte) erstellen wollte, immer rekursiv vorgehen musste... *smile*), und stellt sich damit in ein ein-zeiliges xterm-Fenster. Danach liest es ununterbrochen ~/lernen.dat, und zeigt alle zehn Sekunden eine Vokabeln samit Übersetzung an. Die Vokabeldatei ~/lernen.dat muss in keinem bestimmtem Format gespeichert sein, tortzdem empfehle Ich: Deutsch --- Fremdsprache. Übrigens kann dieses Skript auch als Errinerungsskript fungieren: Wenn man in die "Vokabeldatei" Termine eingibt, beispielsweise. "Hausaufgaben machen!" oder "StarTrek sehen", rollen ab jetzt die Termine das XTerm-Fenster 'runter. ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- This document is distributed under the terms of the GNU Free Documentation License.