All right, now let's talk about the in shell scripting, OK, now this is an example, as you can see,
or shell scripting a khosro while a nut dash alti in which mean less than.
In which is this is the loop, the first loop, then be equal, then sign here, then will be greater
than or equal zero as you can see to then.
All right.
So as you can see, why will, after we open it, do and after I finish.
Done.
OK, so do then.
So if I run this actually well you can just copy and paste actually you can write it yourself.
It's no big deal as the syntax is the most important thing here.
So I how I can write a while loop.
This is.
The Syntex, other than that, it's up to you or it depends on what you need to do.
All right, so let's go from here and let's run it and see.
It will show us something like that.
And they actually do something nice.
Now, this is for the why loop.
Now for the for loop, actually.
Well, actually, there are other other loops like the engine or like the select, but I will show you
just the four and one.
So this is an example.
OK.
So I want to direct this first, because I forget to remove it so far, one in one, two or three,
so do and then.
OK, so which means this is the body of the pope and this is the second four and zero five two and then.
Right.
So you can see now if one is equal then two and this means and OK, VA is equal zero then break two
ls equal for one part two.
OK, so actually we used the break which means it will break from the inner loop, which is the inner
for loop.
OK, so let's run this and see what will happen.
So if I run it it will show us one zero and one five.
OK, so if I go again you can see that the first, the first loop go through in one, two, three.
So the first number is one and we go inside the other two or the second loop I mean and for two in there
also it will start with zero though, which means that no, they are not equal, as you can see, where
one is not equal to two and two is not equal to zero.
So which means it is.
So we will print the one over to the same thing for that.
To what actually, it doesn't matter about the logic.
What is matter for you now is the syntax.
So how to use a for loop?
And here is the syntax for something or the variable in L.A., as you can see here, like these one,
two, three, or ABC or anything and two.
Done.
OK, so after you done from the following, which means this is the end of the loop, OK, and it will
still keep looping until these are completed.
OK, so it will go through one, two, three.
All right.
Depends on the condition we have here.
And by the way, we can use instead of break continue as well.
Well, actually, it is basic programming and we.
Thanks for what.