Languages
[Edit]
EN

Bash - for loop in range

0 points
Created by:
Wade
562

This article will show you how to use for loop in range in Bash.

Syntax:

Note: 

If you don't give a step and just write {START..STOP},  the default value of the step is 1.

 

Practical examples

Edit

Output:

Example with step

Edit

Output:

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Bash

Bash - for loop in range
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join