Shell Scripting Tutorial for Beginners 22 - Break and continue

preview_player
Показать описание
The break statement is used to exit the current loop before its normal ending.
The continue statement resumes iteration of an enclosing for, while, until or select loop.

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

So simple most people start adding lists and all this mess into break statements and I couldnt grasph it.
I thank you very much for this.

xaagripha
Автор

You could be a lecturer, you explain things very well. Thanks a lot!

renyirish
Автор

how to print the output in horizontal way ?

alanwalker
Автор

Hello can you explain this:


[ -n $HOME ]
echo $?
[ -z $HOME ]
echo $?

tulsiramkushwah
Автор

Hi Sir, please upload videos about Spring AOP( Security service, JMS, TX Management, mail

naresh
Автор

could you explain to me this #!/bin/bash
sum=0
for var1 in $@ # this can also be written as for var1
do
echo $var1 | egrep "[^0-9+-]" > /dev/null
if [ $? = 0 ]
then
echo "$var1 is not a number"
exit 1
fi
sum=$(( sum + $var1 )) # old way to do this is: sum=$[ $sum + $var1 ]

joseiahsewwandi
visit shbcf.ru