1
00:00:01,490 --> 00:00:04,960
In this lecture we can try to go through all arguments.

2
00:00:05,040 --> 00:00:12,260
So great script called Iraq's not as age stardate siobhán

3
00:00:15,820 --> 00:00:18,570
and we can also write some comment.

4
00:00:19,090 --> 00:00:21,970
So we go through all arguments

5
00:00:25,360 --> 00:00:27,580
and putting them all

6
00:00:32,400 --> 00:00:35,340
as I want to see which argument is first of each second.

7
00:00:35,550 --> 00:00:42,710
I need to create a variable you can name it count and assign a value 7:59.

8
00:00:43,100 --> 00:00:53,270
Now we can loop through all arguments so right for argument in a list of all arguments that are presented

9
00:00:53,330 --> 00:01:03,070
as dollar sign at and for that we will prevail and we will bring them between do and on a keyboard.

10
00:01:03,450 --> 00:01:09,320
So right now value of variable columned which is now one

11
00:01:13,440 --> 00:01:21,760
argument and value of the variable are bad.

12
00:01:21,800 --> 00:01:26,820
We need to also increment the Candelas solve for second argument would be injured.

13
00:01:26,870 --> 00:01:35,470
Second argument we are incrementing using galat command which was discussed in math calculational lecture.

14
00:01:35,470 --> 00:01:39,220
Now we can save the script and exit with permission

15
00:01:42,090 --> 00:01:45,220
and we can get on it with some arguments.

16
00:01:48,370 --> 00:01:50,600
So for example one two.

17
00:01:50,650 --> 00:01:52,080
Sorry.

18
00:01:53,170 --> 00:01:54,180
Hello.

19
00:01:54,640 --> 00:02:01,070
Something.

20
00:02:01,170 --> 00:02:04,760
And as we see first at a command one second argument two.

21
00:02:04,830 --> 00:02:05,700
And so on.

22
00:02:05,700 --> 00:02:12,860
Great but do remember that we can bring our arguments also using a dollar sign asterisk.

23
00:02:13,200 --> 00:02:27,450
This option is not so useful as you will see so open the script again and in the script change the sign

24
00:02:27,480 --> 00:02:29,020
to asterisk.

25
00:02:29,040 --> 00:02:36,960
The downside of Dallara sign asterisk is that it brings all arguments as one string which is not always

26
00:02:36,960 --> 00:02:37,530
wanted.

27
00:02:37,710 --> 00:02:40,080
So save the script and then again

28
00:02:43,520 --> 00:02:47,770
can you see that now we have printed here first argument.

29
00:02:47,800 --> 00:02:49,000
One two three.

30
00:02:49,040 --> 00:02:53,290
Hello something which is definitely something we didn't want.

31
00:02:53,420 --> 00:03:02,140
So advice here is to use Dallara signed followed by sign if you want to loop through each script argument.
