Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by likegeeks.com #
 
PREVIOUS NEXT
Tagged: #quit #loop #bash
ADD COMMENT
Topic
Name
6+3 =