1
00:00:01,140 --> 00:00:07,950
In a previous video I had shown you how to display all arguments and how it is hard to see any difference

2
00:00:07,950 --> 00:00:12,790
between dollar sign and dollar sign us that is option in this video.

3
00:00:12,840 --> 00:00:14,490
I will show you the difference.

4
00:00:14,640 --> 00:00:22,500
But first let's talk more about entering our field separator Internet field separator is used by the

5
00:00:22,500 --> 00:00:28,230
shell to determine how to do vord sprinting to see its current value.

6
00:00:28,320 --> 00:00:34,490
We can use set by Greb I ever use.

7
00:00:34,500 --> 00:00:40,460
If you remember a previous section we talk about displaying or arguments using dollar sign as that is

8
00:00:41,190 --> 00:00:42,300
which is expense.

9
00:00:42,330 --> 00:00:53,310
As one string dollar sign one see dollar sign to C and so on where the C is the first character of internal

10
00:00:53,310 --> 00:00:59,830
field separator which is in our case space.

11
00:01:00,420 --> 00:01:05,130
So now let's open our previously created script argument.

12
00:01:05,160 --> 00:01:05,960
Does SH

13
00:01:08,470 --> 00:01:12,270
and just add a line.

14
00:01:12,600 --> 00:01:22,040
I have us equals and inside a book with action marks both comma.

15
00:01:22,450 --> 00:01:23,620
Now save the script

16
00:01:26,530 --> 00:01:26,970
and the

17
00:01:37,940 --> 00:01:39,270
can you see the difference.

18
00:01:39,270 --> 00:01:43,770
Now for option or argument of a dollar sign or.

19
00:01:43,920 --> 00:01:48,480
We can now see all arguments separated with the comma.

20
00:01:48,560 --> 00:01:52,220
Great.

21
00:01:52,460 --> 00:01:57,570
Now let's make something simple on how to assign arguments in into variables.

22
00:01:57,710 --> 00:02:00,530
Create fire arguments to that as they age

23
00:02:03,280 --> 00:02:05,080
start with siobhán

24
00:02:11,020 --> 00:02:17,110
and let's write some comment here to know that we are going to assign arguments into variable

25
00:02:23,440 --> 00:02:27,150
to assign first argument into variable first.

26
00:02:27,250 --> 00:02:31,080
Just type first equals don't assign one.

27
00:02:31,810 --> 00:02:36,100
Similarly you can do that the same for second argument.

28
00:02:36,700 --> 00:02:42,280
Let's make it more interesting and assume that if you want to know the result of first argument plus

29
00:02:42,340 --> 00:02:46,790
second argument we can do it easily with.

30
00:02:47,410 --> 00:02:50,090
And now we just print the and

31
00:03:03,230 --> 00:03:04,730
now we can save the file

32
00:03:11,070 --> 00:03:17,280
and we also need to change permission.

33
00:03:17,720 --> 00:03:22,150
Now we can then I will pass two arguments.

34
00:03:22,160 --> 00:03:30,900
First is to second is five and WA two plus five equals seven.

35
00:03:30,920 --> 00:03:32,710
Great working perfectly.
