Greetings,
I'm writing a simple backup script and need to use two loops.
How can I include a loop within a loop?
With the following, the program stalls at the end, it apparantly doesn't like the two done's next to each other.
x=1
while [ -f test ]
do
until [ $x "=" 5 ]
do
echo $x " - not 5 yet!"
let x=x+1
done
done
thanks!