Bash Scripting - Loops
What will be the output of this script?
for i in 1 2 3 4 5; do
if [ "$i" -eq 3 ]; then
continue
fi
echo $i
donefor i in 1 2 3 4 5; do
if [ "$i" -eq 3 ]; then
continue
fi
echo $i
donei equals 3, continue skips the rest of that iteration, so echo $i is not run for 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions