bash do while one line 1

bash do while one line

while : ; do ACTION_CODE;[[ CONDITION_STATEMENT ]] || break;done

Here is what the above code is Doing:
1. The while loop is executed until the CONDITION_STATEMENT is false.
2. The CONDITION_STATEMENT is evaluated before each iteration of the loop.
3. If the CONDITION_STATEMENT is true, the ACTION_CODE is executed.
4. If the CONDITION_STATEMENT is false, the loop is terminated.

Similar Posts