1
00:00:02,700 --> 00:00:12,980
Let's print the content of our rescript using cap common we see descript is quite big and some parts

2
00:00:12,980 --> 00:00:18,140
of code are the same so it would be good to fix it.

3
00:00:18,140 --> 00:00:26,280
So Kobe oak banned for counting some and displaying statistics

4
00:00:39,480 --> 00:00:47,670
and because we have a debt Oak Park in two places so it wouldn't be good to place that part into separate

5
00:00:47,670 --> 00:00:53,000
file and just call that part from one place.

6
00:00:53,070 --> 00:01:06,030
So for that reason co-pay debt all part and create file which will be called for example size dot org.

7
00:01:15,370 --> 00:01:18,670
In that file just based Kopete Oak Park

8
00:01:21,450 --> 00:01:26,790
and saved the file.

9
00:01:27,010 --> 00:01:29,040
Now open our script

10
00:01:37,580 --> 00:01:39,840
and now you will like this.

11
00:01:40,100 --> 00:01:50,500
Just delete that Oake part.

12
00:01:50,570 --> 00:01:54,540
Don't be afraid that we are getting rid of our code.

13
00:01:54,620 --> 00:01:58,590
We have it in file size dot org.

14
00:02:19,470 --> 00:02:29,220
So now we need to tell all book to read our main and end section for a specific file for the reason

15
00:02:29,490 --> 00:02:42,680
use parameter F and did parameter f is followed by name of did file we have just created size.

16
00:02:42,730 --> 00:02:43,090
Awk

17
00:02:52,150 --> 00:02:55,350
and look now how discrete is more readable

18
00:02:59,380 --> 00:03:00,760
This is beautiful.

19
00:03:05,580 --> 00:03:08,340
So enjoy the look on our screen.

20
00:03:09,830 --> 00:03:11,610
And as if we are done here.

21
00:03:11,840 --> 00:03:13,620
You can save the file

22
00:03:17,130 --> 00:03:22,110
and we can on it specify some location

23
00:03:26,150 --> 00:03:28,370
also specify some extension

24
00:03:32,990 --> 00:03:37,920
and also use parameter as it is working good.

25
00:03:38,060 --> 00:03:43,760
Remove now that extension and it is also working.

26
00:03:43,760 --> 00:03:47,290
The script is finally done or not.

27
00:03:47,330 --> 00:03:51,030
We have an issue in script doing over.

28
00:03:51,710 --> 00:04:01,970
We have a reading of sections from file but the data file is ahead from current directory not from Bob.

29
00:04:02,240 --> 00:04:07,300
So this can lead to errors if you run the script from another location.

30
00:04:07,580 --> 00:04:14,200
So we can fix that and prepend the whole pop before all script name

31
00:04:30,260 --> 00:04:32,630
and now the script is finally done.

32
00:04:32,780 --> 00:04:34,620
And now you can enjoy it.

33
00:04:34,910 --> 00:04:37,980
We can test it if it is really working.

34
00:04:40,470 --> 00:04:43,800
Now anyone know how to build such a script.

35
00:04:43,890 --> 00:04:46,550
You can adjust it to your needs.

36
00:04:46,560 --> 00:04:50,170
Maybe you have ideas how to do something in a different way.

37
00:04:50,190 --> 00:04:56,370
For example use another script parameters or use different printing of statistics to order.

38
00:04:56,520 --> 00:05:00,590
So now it's completely up to you are the master here.
