Warum funktioniert das nicht? - Bash
Hey Leute, warum funktioniert das nicht? http://www.xairro.com/paste/252/
Hmm gibt es vielleicht gar keine Fehler??
Ich verstehe nicht, was das Ganze soll. Läuft es nicht auf y=$limit hinaus?
Edit: Meinst du villeicht soetwas?
#!/bin/bash
clear
echo -n "Wie heißt du? "
read name
echo -n "Wie alt möchtest du werden $name? "
read limit
y=1
while [ 1 ]
do
y=`expr $y + 1`
if [ $y==$limit ]
then
break
fi
done
There are only 10 types of people in the world: Those who understand binary, and those who don't.
Naja jetzt funktioniert alles reibungslos ... danke, aber eigentlich wollte ich, dass der so viele Dateien erstellt wie $limit
Bohnenstrohalme:
Naja jetzt funktioniert alles reibungslos ... danke, aber eigentlich wollte ich, dass der so viele Dateien erstellt wie $limit
Ach so, dann schreibst du das touch $y wieder rein. Auch wenn ich immer noch nicht weiß, was das bringt
There are only 10 types of people in the world: Those who understand binary, and those who don't.
