Question
In linux, in bash scripting, what is the difference between the break and continue keywords used in loops?
break will completely exit the loop (and go to after the "done" keyword) while continue will break out of just the current iteration of loop and go to top of loop for next iteration

Question
In linux, in bash scripting, what is the difference between the break and continue keywords used in loops?
?

Question
In linux, in bash scripting, what is the difference between the break and continue keywords used in loops?
break will completely exit the loop (and go to after the "done" keyword) while continue will break out of just the current iteration of loop and go to top of loop for next iteration
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
3 4 5 6 7 8 9 ; do NEW_FILE=$1.BAK-$i if test -e $NEW_FILE ; then echo "backup-lots.sh: **warning**$NEW_FILE" echo " already exists - skipping" continue fi cp $1$NEW_FILE done Note that both <span>break and continue work inside for , while , and until loops. 7.5 Looping Over Glob Expressions We know that the shell can expand file names when given wildcards. For instance, we can type ls *.txt to lis

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions