Shell Scripting Tutorial - Break & Continue Statement

Pubblicato il: 07 aprile 2020
sul canale di: Mental Outlaw
763
36

Subscribe to my YouTube channel http://goo.gl/9U10Wz
and be sure to click that notification bell so you know when new videos are released.


In this video I show you how to use break and continue statements in Bash.


******Code Used in this video******
###break statement
i=0

while [[ $i -lt 19 ]]
do
echo "Number: $i"
((i++))
if [[ $i -eq 7 ]]; then
break
fi
done

echo 'All Done!'

###Continue Statement
i=0

while [[ $i -lt 19 ]]; do
((i++))
if [[ "$i" == '2' ]]; then
continue
fi
echo "Number: $i"
done

echo 'All Done!' ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿



Dash
Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz

Zcash
t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr

Chainlink
0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14

Bitcoin Cash
qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp

Etherum Classic
0xeA641e59913960f578ad39A6B4d02051A5556BfC

USD Coin
0x0B045f743A693b225630862a3464B52fefE79FdB Bitcoin
bc1qyj5p6hzqkautq4d3zgzwfllm7xv9wjeqkv857z

Ethereum
0x35B505EB5b717D11c28D163fb1412C3344c7684d

Litecoin
LQviuYVbvJs1jCSiEDwWAarycA4xsqJo7D

DOGE
D7MPGcUT4sXkGroGbs4QVQGyXqXd6QfmXF


In questa pagina del sito puoi guardare il video online Shell Scripting Tutorial - Break & Continue Statement della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Mental Outlaw 07 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 763 volte e gli è piaciuto 36 spettatori. Buona visione!