In this lecture we can try to go through all arguments.
So great script called Iraq's not as age stardate siobhán
and we can also write some comment.
So we go through all arguments
and putting them all
as I want to see which argument is first of each second.
I need to create a variable you can name it count and assign a value 7:59.
Now we can loop through all arguments so right for argument in a list of all arguments that are presented
as dollar sign at and for that we will prevail and we will bring them between do and on a keyboard.
So right now value of variable columned which is now one
argument and value of the variable are bad.
We need to also increment the Candelas solve for second argument would be injured.
Second argument we are incrementing using galat command which was discussed in math calculational lecture.
Now we can save the script and exit with permission
and we can get on it with some arguments.
So for example one two.
Sorry.
Hello.
Something.
And as we see first at a command one second argument two.
And so on.
Great but do remember that we can bring our arguments also using a dollar sign asterisk.
This option is not so useful as you will see so open the script again and in the script change the sign
to asterisk.
The downside of Dallara sign asterisk is that it brings all arguments as one string which is not always
wanted.
So save the script and then again
can you see that now we have printed here first argument.
One two three.
Hello something which is definitely something we didn't want.
So advice here is to use Dallara signed followed by sign if you want to loop through each script argument.