Now with that knowledge we have learned it's time to build something amazing.
Imagine that you work for a company where a group of people work with specific files which cannot have
dabster spaces at the beginning or at the end of lines.
So your boss asked you to create a script for checking if there is no space or up at the beginning or
at the end of each line.
And also the script should be able to fix possible issues.
And that means remove any space or taps at the beginning or at the end of each line.
So when I for example check file that text I see graphically where the spaces and tabs are present.
And in addition I also see line numbering.
So here I have eight lines and batch of errors.
But I should be able to fix it.
Now let's use barometer H for help.
So I see that using parameter def or a fix I can fix space issue.
So let's write
I see printed fixing spaces and UPS at the beginning and at the end of lines then I see content of the
file with no error and the message with the green background done so fixes them has rejected we don't
see any issue now.
Great.
So let's create some errors.
So I got a few spaces summed up on another line.
I am adding new spaces and also I can add more taps next to each other and do on space here and we can
save the file.
Now we can run our script.
And if you write we see where the arrows are great.
So let's fix it.
I will now instead of Desch f barometer use parameter.
They should fix
both of them do the same.
And I see.
Message them when I recheck.
I don't see any space issue.
Great.
It works perfectly.
I can of course use another location for example I can check Basford file.
I don't see any red warning here.
So password file doesn't have any space or top at the beginning or at the end of each line.
So in following pictures we will build discrete Step-By-Step we will use a lot of set features and we
will definitely Pretis require expression it out.
Basically we will use knowledge we have learned about scripting and combine them with set.