In this lecture as we are already printing alliance with Iran without any issue we can put in alliance
with space issues so we can write after checking if the line is any space stop issue.
Print number of line which has some SRU.
Basically if the code goes here this line needs to have some issue.
I remember on continue command which would jump on another loop with no space or issue is found.
So we are printing a line number of a line with some issue
and this outpolled also needs to be redirected to our temporary file.
Now vote we need to do.
We need to put in on the same line as the baseline number spaces and taps as a red background at the
beginning of line.
So we are just writing comment about that.
And we also mean on the same line but print part of line which is correct which doesn't have any space
stops at the beginning and at the end of line
and we also need to bring on this same line spaces and tabs as edit the ground which are at the end
of line.
So now how to put in spaces and tabs as a red background at the beginning of our line forget the evil
use bash regular expression.
So just now create a variable called Ixtapa which is Wrex for imaging spaces or tabs at the beginning
of a line
and remember that the beshe uses extended regular expression.
So it is slightly different from what we have seen in the set command which uses basic Regla expression
and also create a variable called Reg X and which matches spaces and tabs at the end of the line.
So not is dead here in extended regular expression we are not using backslash before plus symbol.
Now we can for space issues at the beginning of a line.
Ask if Kickstarter variable matches our line.
And if yes if a registered variable matches our line we know that we have space issues at the beginning
of a line.
So now we need that part which matches I guess we need to put that part into a red background.
So use eco commom we eat and an barometer e barometer will allow us to use and interpret special characters.
For example it's TransFair backslash the
left bracket 41 and into red background.
So everything we now print will be in red background so we can print value of variable Bircher image
because this matches all spaces and tabs at the beginning of a line and we can finish with back sealife
the left bracket 49 M which means default background this output we can detect of course to our temporary
file.
So one time more we asked if our lines match use regular expression QuickStart.
And even as we know that dedi space or top issue at the beginning of our line.
So we are taking a dead wrong space apart from the beginning and putting it into red background so we
tested
I can see on the first line only someone had a background grade.
When I fix it using the forum either I don't see any red background good we can get no errors here.
Well then we add a few spaces stops at the beginning.
So open our test file and up a few spaces or tabs and the beginning of some line and some spaces also
in another line.
And also some top now now you can save this file and then rejected by our script.
We see her in the background only in lines which are very edited.
Great but we don't see here what is space and what post-up so we can definitely make it more visible
in following questions.