In linux, in shell scripting, if you are in a while, until or for loop, and you want looping to stop (i.e. execution to continue after "done" line), you use the [...] keyword
Answer
break
Question
In linux, in shell scripting, if you are in a while, until or for loop, and you want looping to stop (i.e. execution to continue after "done" line), you use the [...] keyword
Answer
?
Question
In linux, in shell scripting, if you are in a while, until or for loop, and you want looping to stop (i.e. execution to continue after "done" line), you use the [...] keyword
Answer
break
If you want to change selection, open document below and click on "Move attachment"
7. Shell Scripting .sh: **warning** $NEW_FILE" echo " already exists - skipping" else cp $1 $NEW_FILE fi done 7.4 break ing Out of Loops and continue ing A loop that requires premature termination can include the <span>break statement within it: 5 10 #!/bin/sh for i in 0 1 2 3 4 5 6 7 8 9 ; do NEW_FILE=$1.BAK-$i if test -e $NEW_FILE ; then echo "backup-lots.sh: **error** $NEW_FILE" echo " already exists - e
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised 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.