1
00:00:02,650 --> 00:00:09,880
We can now build something pretty redock what you think we'll build a script called files which provides

2
00:00:09,970 --> 00:00:17,030
us information how many files are in current directory and how much disk space do they take.

3
00:00:17,050 --> 00:00:23,650
In addition it can provide also information for specific file extension and also information about the

4
00:00:23,650 --> 00:00:31,930
largest and smallest file Yvie in our script use parameter dash age or does this help we will get information

5
00:00:31,930 --> 00:00:34,570
how to use properly our script.

6
00:00:34,570 --> 00:00:41,110
For example we can set location using parameter L and we can even specify if our extension for a Ridgeville

7
00:00:41,110 --> 00:00:44,370
will become disk base using barometer.

8
00:00:44,560 --> 00:00:50,210
And we have also possibility to display some statistics using parameters Stoss.

9
00:00:50,290 --> 00:00:52,530
So now let's check how it behaves.

10
00:00:52,600 --> 00:00:58,210
Let's figure out how many files with the extension Konrath are in current directory and how much space

11
00:00:58,210 --> 00:00:59,770
do they take.

12
00:00:59,830 --> 00:01:02,790
I have Sirtis three files with extension cords.

13
00:01:03,010 --> 00:01:03,770
And they.

14
00:01:03,790 --> 00:01:06,330
Not even one megabyte.

15
00:01:06,340 --> 00:01:13,990
Now we can add to our script parameter s or parameter status which will provide some statistics

16
00:01:18,120 --> 00:01:23,760
and we can see what is the largest and smallest file and how much space does it take.

17
00:01:23,760 --> 00:01:27,060
This is great.

18
00:01:27,070 --> 00:01:43,110
Now let's change our location using our parameter to my test for the.

19
00:01:43,330 --> 00:01:48,670
And also I can easily display some statistics for this location.

20
00:01:50,590 --> 00:02:01,760
And again display statistics for files with extension B D F.

21
00:02:01,940 --> 00:02:10,490
So I can see the largest pedia file has 18 megabytes and it is called file for PTF.

22
00:02:10,530 --> 00:02:13,790
So in those lectures we will build descript.

23
00:02:13,860 --> 00:02:20,860
But what's more we won't use any d'you come on for counting how much disk space files take but we'll

24
00:02:20,880 --> 00:02:24,390
create our own disk space Kantar using awk.

25
00:02:24,510 --> 00:02:24,820
Common.
