quit while loop bash code example
Example: quit while loop bash
#!/bin/bash
for number in 10 11 12 13 14 15; do
if [ $number -eq 14 ]; then
break
fi
echo "Number: $number"
done
#!/bin/bash
for number in 10 11 12 13 14 15; do
if [ $number -eq 14 ]; then
break
fi
echo "Number: $number"
done