1
00:00:01,710 --> 00:00:07,290
In this lecture we can fix those fine lines displayed on the same line.

2
00:00:07,620 --> 00:00:17,590
But first of IVC that error because we are using eco command with barometer Desch and which makes next

3
00:00:17,720 --> 00:00:21,310
month to be printed on the same line.

4
00:00:21,390 --> 00:00:31,730
So if we remove that Barometer from last month would it be enough.

5
00:00:31,740 --> 00:00:40,490
No it is not enough because of what happens if space stops are present only at the beginning of a line.

6
00:00:40,500 --> 00:00:43,650
In that case would be last month.

7
00:00:43,860 --> 00:00:45,210
Not this one.

8
00:00:45,320 --> 00:00:48,260
We removed and barometer.

9
00:00:48,300 --> 00:00:54,630
So as easy fix we can add in this if statement else keyboard

10
00:01:02,120 --> 00:01:06,980
and just the right and the eco command without any barometer.

11
00:01:10,520 --> 00:01:16,180
And directly to our file.

12
00:01:16,200 --> 00:01:19,150
So in that case there is no space issue.

13
00:01:19,290 --> 00:01:28,000
At the end of a line we each time and vent and the eco command which creates by default newline.

14
00:01:28,020 --> 00:01:29,190
Now we can test the

15
00:01:32,070 --> 00:01:35,700
whole can you see that it isn't working perfectly.

16
00:01:35,700 --> 00:01:38,340
We can clearly see spaces stubs.

17
00:01:38,370 --> 00:01:39,960
This looks amazing.

18
00:01:40,230 --> 00:01:47,040
If we fix this and recheck again we don't see any issues.

19
00:01:47,040 --> 00:01:48,250
Amazing.

20
00:01:48,570 --> 00:01:51,190
But I don't kind of like that.

21
00:01:51,210 --> 00:01:53,990
Dan a message of fixing space is issues.

22
00:01:54,000 --> 00:02:01,530
Maybe it would have better if that done what would be displayed at the bottom and maybe with a green

23
00:02:01,530 --> 00:02:02,700
background.

24
00:02:02,700 --> 00:02:05,940
So let's change the script a little bit.

25
00:02:08,140 --> 00:02:14,580
Firstly we can remove that Eco command which purines message.

26
00:02:14,670 --> 00:02:15,050
Dom

27
00:02:23,290 --> 00:02:33,430
Denn at the end of our script we can ask if user has specified fix barometer

28
00:02:46,550 --> 00:02:58,850
and if user has specified fixed parameter we can print them in a green background for a green background.

29
00:02:58,850 --> 00:03:02,160
We are using back so if the

30
00:03:05,770 --> 00:03:08,610
get 42 and

31
00:03:15,530 --> 00:03:24,480
and we change background to default on using the like a bit of good forty nine and

32
00:03:27,280 --> 00:03:29,840
now the script is dumb.

33
00:03:29,860 --> 00:03:37,000
So you can save it and if you can retested.

34
00:03:37,280 --> 00:03:42,170
So I fill up some spaces and taps into our testing file

35
00:03:55,510 --> 00:03:56,680
and now we will see

36
00:04:00,350 --> 00:04:03,290
Scribd highlighted space and tub's issues.

37
00:04:03,440 --> 00:04:05,260
But how do folks looks like

38
00:04:09,950 --> 00:04:12,760
down a key vote in a green background.

39
00:04:12,820 --> 00:04:16,700
GRAY So our script is dumb.

40
00:04:16,760 --> 00:04:24,440
Now it is up to you if you play motivated and change it to your needs for example you can when using

41
00:04:24,470 --> 00:04:31,260
fixed barometer display only done message and not all the lines from the file.

42
00:04:31,340 --> 00:04:39,440
Also when checking for space stop issues you can show all the lines VGF some issue and not print those

43
00:04:39,440 --> 00:04:41,850
lines which are correct.

44
00:04:41,850 --> 00:04:45,710
There is many possibilities how to change descript.

45
00:04:46,010 --> 00:04:53,810
If this part of writing the script was too quick for you I recommend going through set part again and

46
00:04:53,810 --> 00:04:56,160
then again watch lectures.

47
00:04:56,300 --> 00:05:01,390
Read the art of writing the script Thanks for watching.

48
00:05:01,490 --> 00:05:03,600
And now the fun begins.

49
00:05:03,650 --> 00:05:09,640
You are able to create any kind of script yourself if you are struggling with something.

50
00:05:09,690 --> 00:05:12,580
Go back to the course and vote again.

51
00:05:12,590 --> 00:05:20,480
Lectures about topic you are struggling but keep in mind that most do you can learn by writing your

52
00:05:20,540 --> 00:05:22,230
own scripts.

53
00:05:22,250 --> 00:05:24,420
I wish you good luck with death.
