We can now build something pretty redock what you think we'll build a script called files which provides
us information how many files are in current directory and how much disk space do they take.
In addition it can provide also information for specific file extension and also information about the
largest and smallest file Yvie in our script use parameter dash age or does this help we will get information
how to use properly our script.
For example we can set location using parameter L and we can even specify if our extension for a Ridgeville
will become disk base using barometer.
And we have also possibility to display some statistics using parameters Stoss.
So now let's check how it behaves.
Let's figure out how many files with the extension Konrath are in current directory and how much space
do they take.
I have Sirtis three files with extension cords.
And they.
Not even one megabyte.
Now we can add to our script parameter s or parameter status which will provide some statistics
and we can see what is the largest and smallest file and how much space does it take.
This is great.
Now let's change our location using our parameter to my test for the.
And also I can easily display some statistics for this location.
And again display statistics for files with extension B D F.
So I can see the largest pedia file has 18 megabytes and it is called file for PTF.
So in those lectures we will build descript.
But what's more we won't use any d'you come on for counting how much disk space files take but we'll
create our own disk space Kantar using awk.
Common.