1
00:00:00,900 --> 00:00:03,820
Now the script prints only Coraline's.

2
00:00:03,870 --> 00:00:06,520
So diversification of debt can be difficult.

3
00:00:06,540 --> 00:00:15,840
Then we don't also like numbers so let's do that let's do also the line numbering for that we will define

4
00:00:16,020 --> 00:00:26,450
variable right before the start of a WHILE loop and BVO assign value zero to it.

5
00:00:30,750 --> 00:00:40,650
And into viral loop where the lines are had one by one we need to increment the variable lines.

6
00:00:41,880 --> 00:00:43,800
So this was simple.

7
00:00:43,800 --> 00:00:49,030
Now we can print the value of lines of variable to user.

8
00:00:50,160 --> 00:00:58,810
We can do that using print f command which allows us to do better formatting of text than eco command

9
00:00:59,010 --> 00:00:59,680
itself.

10
00:01:01,080 --> 00:01:12,710
So by specifying percentage for as the saying did we want to have printed value of variable lines in

11
00:01:12,710 --> 00:01:15,240
the first four character place.

12
00:01:15,290 --> 00:01:22,280
That basically means that we have prepared for character places for our variable benefit is that the

13
00:01:22,280 --> 00:01:28,660
1 digit number will be placed on the four place two digit number on the third and fourth place.

14
00:01:28,730 --> 00:01:30,840
So we will have nice intonation.

15
00:01:30,890 --> 00:01:35,380
You will definitely see when we do testing of it.

16
00:01:35,420 --> 00:01:43,560
Now imagine did we have 1000 lines in our file our script goes line by line and then.

17
00:01:43,580 --> 00:01:49,980
So as a result you would see how content of R5 is bigger and bigger the last line is right.

18
00:01:50,030 --> 00:01:53,870
I think that the best would be to display all lines at once.

19
00:01:53,870 --> 00:01:57,440
As for example catechumen does how to do that.

20
00:01:57,590 --> 00:01:59,920
We can have a direct or output.

21
00:01:59,930 --> 00:02:07,870
We are printing Duzer to some temporary file and at the end of reading client we can using that command.

22
00:02:07,970 --> 00:02:10,500
But in those lines at once.

23
00:02:10,760 --> 00:02:14,720
So let's redirect line and numbering into temporary file

24
00:02:23,520 --> 00:02:27,560
and also read it as Coreg line to that file.

25
00:02:27,560 --> 00:02:28,080
Also

26
00:02:32,800 --> 00:02:40,540
after Dan McKeever they're all lines very red we can print all the lines advance from our temporary

27
00:02:40,540 --> 00:02:42,990
file using common.

28
00:02:44,020 --> 00:02:49,450
And because this is temporary file we don't want to keep this file we can just remove it.

29
00:02:51,500 --> 00:02:57,610
So we have moved all output printed to screen and that added a to file.

30
00:02:57,680 --> 00:03:05,390
And then after the last line of error that we are displaying content of temporary file at once if it

31
00:03:05,390 --> 00:03:05,960
tested

32
00:03:09,640 --> 00:03:11,470
by running our script

33
00:03:17,110 --> 00:03:20,420
we see a line numbering grave.

34
00:03:20,650 --> 00:03:30,010
I don't see first and third line as Date contains space or up arrows but after a line number would be

35
00:03:30,010 --> 00:03:32,930
good to go on for better readability.

36
00:03:33,140 --> 00:03:37,650
So gone after the value of viable lines.

37
00:03:55,050 --> 00:03:56,970
And we can reduce it.

38
00:03:57,030 --> 00:03:59,920
Now we see line numbering which looks good.
