Now the script prints only Coraline's.
So diversification of debt can be difficult.
Then we don't also like numbers so let's do that let's do also the line numbering for that we will define
variable right before the start of a WHILE loop and BVO assign value zero to it.
And into viral loop where the lines are had one by one we need to increment the variable lines.
So this was simple.
Now we can print the value of lines of variable to user.
We can do that using print f command which allows us to do better formatting of text than eco command
itself.
So by specifying percentage for as the saying did we want to have printed value of variable lines in
the first four character place.
That basically means that we have prepared for character places for our variable benefit is that the
1 digit number will be placed on the four place two digit number on the third and fourth place.
So we will have nice intonation.
You will definitely see when we do testing of it.
Now imagine did we have 1000 lines in our file our script goes line by line and then.
So as a result you would see how content of R5 is bigger and bigger the last line is right.
I think that the best would be to display all lines at once.
As for example catechumen does how to do that.
We can have a direct or output.
We are printing Duzer to some temporary file and at the end of reading client we can using that command.
But in those lines at once.
So let's redirect line and numbering into temporary file
and also read it as Coreg line to that file.
Also
after Dan McKeever they're all lines very red we can print all the lines advance from our temporary
file using common.
And because this is temporary file we don't want to keep this file we can just remove it.
So we have moved all output printed to screen and that added a to file.
And then after the last line of error that we are displaying content of temporary file at once if it
tested
by running our script
we see a line numbering grave.
I don't see first and third line as Date contains space or up arrows but after a line number would be
good to go on for better readability.
So gone after the value of viable lines.
And we can reduce it.
Now we see line numbering which looks good.