Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, in bash scripting, what is the difference between the break and continue keywords used in loops?
Answer
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?
Answer
?

Question
In linux, in bash scripting, what is the difference between the break and continue keywords used in loops?
Answer
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

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.