OK, now it's time to talk about the loops in script.
Now, let's talk with the for loop.
So, Vin, as datasets that we created previously know here.
So this index is like that for the variable, which is I in.
And then what the sequence?
So for example, I use the braces like that and I looked in double quotation one.
And Coma to arrest the.
And three, OK, now do put the command you want, for example, Brent I.
Then done, OK, so it is like that.
For I in this sequence, dun dun dun.
And inside it's equal the eye, so it will bring it on to three.
No, listen.
That's the test that you can see that is one to three.
All right, cool.
Now we can have a sequence and read from a fight.
So for example, let's touch, let's do test, OK, and let's list the text and inside it.
Let me put first one or two there.
Values, blah blah blah.
OK, whatever.
Now here inside the US as edge, this time I want to bring this fight.
But how did we learn to put undone?
A comment inside the bash script.
Yes, you are right.
Using either that back quotation like that or the dollar sign with Beckett's.
Let's put that quotation back single quotation and let's put cat, let's do text and then it's equal
AI.
So let's run, as did.
Yeah, you can see that it will be first to third in the value of the fight.
Also, we can have.
Practical usage, like we want to bring a range of IP addresses so forth.
Let's put this from one notes and then walked in.
OK, now here echo.
One two nine eight one six eight zero Dot the I and I.
It's been one to three until we reached an OK, so let's hit and run to see what the values.
You can see that.
One two three four until we reach 10.
OK, so this is a practical example to generate ideas, for example.
OK, now this is for the poor.
Now we have another syntax for the loops, which is the way loops.
OK?
Just as the programming languages, by the way, it is the same.
So let's delete this.
The syntax is like that while then put inside a brackets.
Make sure the two follow as we learned from the events there as a spaces between here.
OK, now here we can put that wild thing.
OK.
First, let's put out that this is just an example equal one.
Or let's.
But that's OK.
Now that there are same counter is dexterity, which means less than 10, for example.
And Mitchell, there is a spaces, then we will do.
And after we finished done and inside the y loop, we want to equal, for example.
The count up.
OK.
And after we bring the count up, we can use this command, which is putting two double brackets count
plus plus like that.
So this will increase the counter.
Let's on it and you can see it will start showing one two three until we reach nine and 10 is not included
it to include it.
Actually, it's not less.
Then it's less or equal.
So, Ellie?
OK.
And save it now.
Let's run again.
Yeah, you can see one two until we reach 10.
OK.