1
00:00:01,050 --> 00:00:05,380
In location of your own grade script called explicit

2
00:00:08,240 --> 00:00:09,410
on the first line.

3
00:00:09,440 --> 00:00:11,130
Let's start with a bang

4
00:00:13,610 --> 00:00:19,720
followed by bin bash on the end of the line.

5
00:00:19,790 --> 00:00:28,670
We can create a variable called Count and assign value 5 to it.

6
00:00:28,670 --> 00:00:32,350
Now we would like to display value of variable count.

7
00:00:32,690 --> 00:00:42,780
So we are using common echo count equals dollar assigned count.

8
00:00:42,790 --> 00:00:47,280
Now let's say we need an exit editor

9
00:00:51,610 --> 00:00:55,550
now we need to add executive permission to our script.

10
00:00:56,200 --> 00:00:57,860
Let's do that with changement

11
00:01:01,480 --> 00:01:04,580
and we can see that script can be done.

12
00:01:04,990 --> 00:01:05,880
So let's run it.

13
00:01:11,430 --> 00:01:12,150
Nice.

14
00:01:12,210 --> 00:01:15,030
We can see Count equals five.

15
00:01:15,180 --> 00:01:18,720
It's working perfectly.

16
00:01:19,170 --> 00:01:20,690
Open your script again.

17
00:01:20,910 --> 00:01:27,470
You may have noticed that I used apostrophes in the echo command here without apostrophes.

18
00:01:27,570 --> 00:01:34,260
The script works just fine but in some cases some symbols may be interpreted wrongly and I will just

19
00:01:34,260 --> 00:01:36,420
show you that right.

20
00:01:36,450 --> 00:01:37,300
Ico.

21
00:01:37,590 --> 00:01:40,870
Hello backslash.

22
00:01:41,880 --> 00:01:46,850
Just want to display backslash

23
00:01:50,350 --> 00:01:52,920
on the next line.

24
00:01:53,170 --> 00:01:56,420
Bright eco.

25
00:01:56,540 --> 00:02:04,250
It's a good day to learn and save discrete

26
00:02:07,940 --> 00:02:09,500
running in output.

27
00:02:09,490 --> 00:02:13,990
We see that the backslash wasn't even displayed.

28
00:02:14,000 --> 00:02:23,420
Also we see dead single quotation mark in it's causes some error as Abeche is looking for matching single

29
00:02:23,420 --> 00:02:26,110
quotation mark which cannot be found.

30
00:02:26,450 --> 00:02:34,310
Basically what this means is that some characters has special meaning special function and when we use

31
00:02:34,310 --> 00:02:35,780
them in echo command.

32
00:02:35,810 --> 00:02:47,420
Without apostrophes they are not behaving as normal characters but is something with special function.

33
00:02:47,510 --> 00:02:50,250
Let's open the script again.

34
00:02:53,070 --> 00:03:00,080
And in that script remove the last two lines.

35
00:03:00,240 --> 00:03:07,990
Now let's just use you could come home without any apostrophes and without any special characters to

36
00:03:07,990 --> 00:03:10,620
see that it is working without an issue.

37
00:03:12,830 --> 00:03:22,610
Ico we have a lot sun count oranges save descript and Adani

38
00:03:26,280 --> 00:03:29,230
you'll see that it is working well.

39
00:03:30,270 --> 00:03:33,300
But there let's make some error in assigning a variable

40
00:03:39,240 --> 00:03:40,680
under newline

41
00:03:43,320 --> 00:03:48,320
write count equals

42
00:03:54,040 --> 00:04:02,010
space Sikh's you know that there should be no space next to the equal sign.

43
00:04:02,010 --> 00:04:10,450
When we run the script we got arrows saying six command not found Briefing's dead signing but it's done

44
00:04:10,850 --> 00:04:16,950
and that we want to run a common six.

45
00:04:17,050 --> 00:04:20,140
Now let's check in think of a sentence.

46
00:04:20,140 --> 00:04:27,470
Open the script and Firstly remove the line causing us all to count equal spaces.

47
00:04:27,550 --> 00:04:28,370
Just delete it.

48
00:04:30,670 --> 00:04:42,270
On the new line we can assign some sentence to variable message so type message

49
00:04:46,660 --> 00:04:55,810
equals Hello body and what I did without any apostrophes on the next line.

50
00:04:55,980 --> 00:04:57,160
Just printed message

51
00:05:04,280 --> 00:05:11,080
message is equal to dollar sign message save descript

52
00:05:14,680 --> 00:05:15,290
and that on the

53
00:05:18,560 --> 00:05:25,020
we see that there is an error because we didn't use apostrophes when assigning string sentence Bush

54
00:05:25,110 --> 00:05:28,410
fings did the assigning but is only a message.

55
00:05:28,430 --> 00:05:30,110
Equals Hello.

56
00:05:30,530 --> 00:05:33,440
And then is some command called Buddy.

57
00:05:33,470 --> 00:05:40,900
It is important to not is did assigning bad message equals hello has no importance to underline.

58
00:05:40,940 --> 00:05:42,510
Continue with some command.

59
00:05:42,680 --> 00:05:47,640
You can see here dead no value of message was printed.

60
00:05:50,650 --> 00:05:57,640
In the output we see by the command not found but will happen if we change it to some command which

61
00:05:57,730 --> 00:05:59,250
rarely exits.

62
00:05:59,350 --> 00:06:01,750
Open the script and let's make the change

63
00:06:06,760 --> 00:06:10,240
replace divert badly with some existing command.

64
00:06:10,240 --> 00:06:17,200
For example allow us to save the script and run it.

65
00:06:17,200 --> 00:06:24,940
Here we see that a SQL month was printed and I see content of my directory containing only one script

66
00:06:25,940 --> 00:06:33,670
the message variable was not printed as in the last example.

67
00:06:33,900 --> 00:06:41,820
We basically come across all explicit definition and you know now how to assign a variable using this

68
00:06:41,820 --> 00:06:42,690
method.

69
00:06:43,050 --> 00:06:48,990
But let's finish this lecture with a working script which will print us readable value held by the

70
00:06:51,880 --> 00:06:58,840
so open that script and I will apostrophe's.

71
00:06:58,960 --> 00:07:08,080
And by that I mean double quotation mark at the beginning and a D and a value of variable message.

72
00:07:08,080 --> 00:07:15,460
Now save the script and run it and voila everything works perfectly.
