1
00:00:02,400 --> 00:00:09,640
In this lecture as we are already printing alliance with Iran without any issue we can put in alliance

2
00:00:09,930 --> 00:00:20,150
with space issues so we can write after checking if the line is any space stop issue.

3
00:00:20,630 --> 00:00:27,340
Print number of line which has some SRU.

4
00:00:27,470 --> 00:00:36,260
Basically if the code goes here this line needs to have some issue.

5
00:00:36,470 --> 00:00:44,280
I remember on continue command which would jump on another loop with no space or issue is found.

6
00:00:44,360 --> 00:00:48,930
So we are printing a line number of a line with some issue

7
00:01:00,760 --> 00:01:17,680
and this outpolled also needs to be redirected to our temporary file.

8
00:01:17,690 --> 00:01:20,670
Now vote we need to do.

9
00:01:22,280 --> 00:01:37,370
We need to put in on the same line as the baseline number spaces and taps as a red background at the

10
00:01:37,370 --> 00:01:39,430
beginning of line.

11
00:01:40,370 --> 00:01:44,140
So we are just writing comment about that.

12
00:02:00,220 --> 00:02:09,820
And we also mean on the same line but print part of line which is correct which doesn't have any space

13
00:02:09,820 --> 00:02:13,090
stops at the beginning and at the end of line

14
00:02:47,180 --> 00:02:57,260
and we also need to bring on this same line spaces and tabs as edit the ground which are at the end

15
00:02:57,530 --> 00:03:13,300
of line.

16
00:03:13,350 --> 00:03:23,580
So now how to put in spaces and tabs as a red background at the beginning of our line forget the evil

17
00:03:23,580 --> 00:03:26,360
use bash regular expression.

18
00:03:26,460 --> 00:03:37,980
So just now create a variable called Ixtapa which is Wrex for imaging spaces or tabs at the beginning

19
00:03:38,250 --> 00:03:38,870
of a line

20
00:03:47,330 --> 00:03:54,810
and remember that the beshe uses extended regular expression.

21
00:03:54,980 --> 00:04:04,370
So it is slightly different from what we have seen in the set command which uses basic Regla expression

22
00:04:06,350 --> 00:04:15,990
and also create a variable called Reg X and which matches spaces and tabs at the end of the line.

23
00:04:23,820 --> 00:04:35,830
So not is dead here in extended regular expression we are not using backslash before plus symbol.

24
00:04:36,730 --> 00:04:41,900
Now we can for space issues at the beginning of a line.

25
00:04:41,950 --> 00:04:48,330
Ask if Kickstarter variable matches our line.

26
00:05:03,170 --> 00:05:12,770
And if yes if a registered variable matches our line we know that we have space issues at the beginning

27
00:05:12,860 --> 00:05:16,490
of a line.

28
00:05:17,120 --> 00:05:25,560
So now we need that part which matches I guess we need to put that part into a red background.

29
00:05:25,940 --> 00:05:39,470
So use eco commom we eat and an barometer e barometer will allow us to use and interpret special characters.

30
00:05:39,470 --> 00:05:43,870
For example it's TransFair backslash the

31
00:05:46,590 --> 00:05:52,260
left bracket 41 and into red background.

32
00:05:52,260 --> 00:06:00,360
So everything we now print will be in red background so we can print value of variable Bircher image

33
00:06:00,420 --> 00:06:09,110
because this matches all spaces and tabs at the beginning of a line and we can finish with back sealife

34
00:06:10,330 --> 00:06:22,740
the left bracket 49 M which means default background this output we can detect of course to our temporary

35
00:06:22,860 --> 00:06:30,850
file.

36
00:06:30,880 --> 00:06:37,510
So one time more we asked if our lines match use regular expression QuickStart.

37
00:06:37,690 --> 00:06:43,360
And even as we know that dedi space or top issue at the beginning of our line.

38
00:06:43,510 --> 00:06:53,810
So we are taking a dead wrong space apart from the beginning and putting it into red background so we

39
00:06:53,880 --> 00:06:54,440
tested

40
00:07:00,370 --> 00:07:05,450
I can see on the first line only someone had a background grade.

41
00:07:06,010 --> 00:07:19,190
When I fix it using the forum either I don't see any red background good we can get no errors here.

42
00:07:20,150 --> 00:07:24,480
Well then we add a few spaces stops at the beginning.

43
00:07:24,970 --> 00:07:35,230
So open our test file and up a few spaces or tabs and the beginning of some line and some spaces also

44
00:07:35,470 --> 00:07:36,820
in another line.

45
00:07:37,090 --> 00:07:47,470
And also some top now now you can save this file and then rejected by our script.

46
00:07:47,700 --> 00:07:52,490
We see her in the background only in lines which are very edited.

47
00:07:52,570 --> 00:08:01,020
Great but we don't see here what is space and what post-up so we can definitely make it more visible

48
00:08:01,110 --> 00:08:02,720
in following questions.
