We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Bash
- Looping and Skipping
- Discussions
Looping and Skipping
Looping and Skipping
Sort by
recency
|
256 Discussions
|
Please Login in order to post a comment
Looping is a fundamental concept that allows code to be executed repeatedly based on a condition. Common loop structures include for, while, and do-while. They are used to iterate through collections, perform repetitive tasks, or execute code until a certain condition is met. Cricbet99.Green
for i in {1..99} do if [[ i; fi done
Practice with while loop
for i in {1..99} do if ((i fi done