Let's print the content of our rescript using cap common we see descript is quite big and some parts
of code are the same so it would be good to fix it.
So Kobe oak banned for counting some and displaying statistics
and because we have a debt Oak Park in two places so it wouldn't be good to place that part into separate
file and just call that part from one place.
So for that reason co-pay debt all part and create file which will be called for example size dot org.
In that file just based Kopete Oak Park
and saved the file.
Now open our script
and now you will like this.
Just delete that Oake part.
Don't be afraid that we are getting rid of our code.
We have it in file size dot org.
So now we need to tell all book to read our main and end section for a specific file for the reason
use parameter F and did parameter f is followed by name of did file we have just created size.
Awk
and look now how discrete is more readable
This is beautiful.
So enjoy the look on our screen.
And as if we are done here.
You can save the file
and we can on it specify some location
also specify some extension
and also use parameter as it is working good.
Remove now that extension and it is also working.
The script is finally done or not.
We have an issue in script doing over.
We have a reading of sections from file but the data file is ahead from current directory not from Bob.
So this can lead to errors if you run the script from another location.
So we can fix that and prepend the whole pop before all script name
and now the script is finally done.
And now you can enjoy it.
We can test it if it is really working.
Now anyone know how to build such a script.
You can adjust it to your needs.
Maybe you have ideas how to do something in a different way.
For example use another script parameters or use different printing of statistics to order.
So now it's completely up to you are the master here.