Using 'break' and 'continue' to exit loops in bash
Friday, 23 September 2022
Add Comment
The commands for looping in bash are extremely useful. They allow you to run a series of commands as many times as needed to process a large collection of data. The break and continue commands provide another special option. They allow you to exit a loop early or skip the remaining commands in the loop and return to the beginning.
Both the break and the continue commands are meant to be used only in for, while and until loops. In fact, if you try to invoke the break command on its own, bash will tell you just that.
from Network World https://ift.tt/qbwB5kO
Genrerating Link.... 15 seconds.
Your Link is Ready.
0 Response to "Using 'break' and 'continue' to exit loops in bash"
Post a Comment