1
00:00:01,590 --> 00:00:04,290
I will create a script called Math s h

2
00:00:07,240 --> 00:00:11,680
you know that on the first line we should start a bit shall bang.

3
00:00:12,400 --> 00:00:20,180
So bin bash let's create a variable called number and assigned to the value 5.

4
00:00:20,440 --> 00:00:22,740
And now you can try on your own.

5
00:00:22,780 --> 00:00:32,130
Stop the video and do the number plus five that light double parentheses brackets an expression.

6
00:00:32,290 --> 00:00:33,830
I row start with.

7
00:00:33,970 --> 00:00:39,150
Well it should be easy.

8
00:00:40,070 --> 00:00:44,320
Well that result equals number plus five.

9
00:00:44,440 --> 00:00:47,560
Remember no spaces around plus sign.

10
00:00:47,950 --> 00:00:49,840
And now we're in the resolved

11
00:00:53,430 --> 00:00:58,880
here is out from a million dollar sign.

12
00:00:58,930 --> 00:01:02,880
Is result so this part is done.

13
00:01:02,930 --> 00:01:05,590
Let's move to double parentheses.

14
00:01:12,900 --> 00:01:22,100
Result equals dollar sign and inside double parentheses just the right number.

15
00:01:23,710 --> 00:01:28,360
Plus five for printing the result.

16
00:01:28,370 --> 00:01:40,510
I will just copy previously created equal wine and just add it to include double parentheses Yes exactly.

17
00:01:44,160 --> 00:01:46,680
Next option would be to use brackets

18
00:01:53,430 --> 00:01:53,820
so.

19
00:01:53,850 --> 00:01:54,690
Or is out.

20
00:01:54,800 --> 00:01:58,830
Equals dollar sign brackets.

21
00:01:59,220 --> 00:02:03,210
And inside it of course number plus five

22
00:02:08,530 --> 00:02:13,420
and now I will again just add it equal line.

23
00:02:20,360 --> 00:02:23,770
So now we can try to use expression exper

24
00:02:30,180 --> 00:02:40,350
sole result equals dollar sign and inside parentheses except for the assigned number

25
00:02:43,010 --> 00:02:43,850
plus five

26
00:02:48,350 --> 00:02:51,440
we could instead of Devey use pectic

27
00:03:03,940 --> 00:03:06,310
and last option is to use B.C

28
00:03:12,480 --> 00:03:26,690
and because it can operate floating balloons live will do number multiply by one point nine.

29
00:03:26,860 --> 00:03:39,150
It is important to have expression in double quotation mark followed by by.

30
00:03:39,310 --> 00:03:44,530
So here we are putting expression in double quotation mark

31
00:03:48,050 --> 00:03:50,000
now by.

32
00:03:51,290 --> 00:03:52,370
And now b c

33
00:03:59,800 --> 00:04:11,950
now we will print the result from B C.

34
00:04:12,090 --> 00:04:15,030
So it's done so we can save and scraped

35
00:04:19,250 --> 00:04:23,140
and of course we need to grant execute permission.

36
00:04:28,160 --> 00:04:29,200
Now around here

37
00:04:32,480 --> 00:04:35,530
and we have some problem here.

38
00:04:36,350 --> 00:04:38,780
So it's online.

39
00:04:38,930 --> 00:04:43,730
So just open again the editor or scraped

40
00:04:46,850 --> 00:04:56,490
by typing said no I can see the lines on a Torah so can you see it.

41
00:04:56,840 --> 00:04:59,510
You can produce some special characters in ECO.

42
00:04:59,530 --> 00:05:00,140
C'mon.

43
00:05:00,220 --> 00:05:06,150
No no don't use apostrophes so I will just add Durbach for marks here and say

44
00:05:12,760 --> 00:05:17,220
and great works perfectly now.

45
00:05:17,260 --> 00:05:21,990
Now we can use knowledge of what we have learned in previous section.

46
00:05:22,240 --> 00:05:27,940
Let's say that we want to do addition of two numbers and those two numbers should be given by user.

47
00:05:28,090 --> 00:05:29,210
Let's do it.

48
00:05:29,230 --> 00:05:35,620
Firstly I will clear the screen and create a file called month to do it.

49
00:05:35,690 --> 00:05:46,280
As age starting with Shaban on the first line as you will be in bash.

50
00:05:46,490 --> 00:05:49,420
Now let's ask user for his input.

51
00:05:49,670 --> 00:05:53,720
Eco Desch an enter first number by any parameter.

52
00:05:53,720 --> 00:05:59,170
We are ensuring that the user will type on the same line as where is our message.

53
00:05:59,280 --> 00:06:01,770
We will ask also for second number

54
00:06:06,320 --> 00:06:09,450
enter second number.

55
00:06:12,470 --> 00:06:14,850
And we will read it by read command

56
00:06:21,980 --> 00:06:22,750
type command.

57
00:06:22,760 --> 00:06:25,130
Do some of that here.

58
00:06:27,630 --> 00:06:38,430
So flat out equals first plus Second no space around equal sign or plus sign.

59
00:06:38,430 --> 00:06:53,700
Now we can print the result and save descript so equal dollar sign first Plus are sign second equals

60
00:06:54,510 --> 00:06:56,110
dollar sign.

61
00:06:56,550 --> 00:06:57,040
Result

62
00:07:02,490 --> 00:07:07,700
and saved descript.

63
00:07:07,930 --> 00:07:11,410
I am changing script permissions so everyone can run it.

64
00:07:11,740 --> 00:07:15,370
And now after changing it I will running

65
00:07:18,640 --> 00:07:21,310
entered for number two and the second number.

66
00:07:21,390 --> 00:07:26,160
Sorry 2 plus 3 equals 5.

67
00:07:26,160 --> 00:07:29,170
Great but let's make some change.

68
00:07:33,680 --> 00:07:36,440
I wrote that command do some b c

69
00:07:43,050 --> 00:07:48,600
result Igor's and into Bechtel's level print ICO.

70
00:07:48,700 --> 00:07:54,340
Now the above quotation marks and inside it we will write some expression for example.

71
00:07:54,350 --> 00:07:55,130
Dollar sign.

72
00:07:55,130 --> 00:07:59,240
First xponent dollar signs second.

73
00:07:59,270 --> 00:08:08,480
Now the pipe and B.C see the difference between light and B.C.E. that don't use any dollar sign in front

74
00:08:08,480 --> 00:08:11,960
of variables where S B C is quite opposite.

75
00:08:12,200 --> 00:08:19,180
And don't forget that for B C you'll need to first print the expression inside double quotation marks.

76
00:08:19,190 --> 00:08:22,550
This is the reason why we are using eco here.

77
00:08:25,570 --> 00:08:32,510
Now let's print the result of that exponent operation equal sign.

78
00:08:32,530 --> 00:08:47,910
First ex-porn symbol Dorson second equals sign rezoned subscript

79
00:08:51,630 --> 00:08:53,690
and right

80
00:08:56,640 --> 00:08:59,350
and the first number two and number three.

81
00:08:59,740 --> 00:09:02,580
Yeah great works nicely.

82
00:09:02,580 --> 00:09:09,550
Two plus three equals five and two exponent symbol three equals eight.

83
00:09:09,770 --> 00:09:10,850
Great works nicely.
