[Autogenerated] Now the mythical end block,
the end block can be really useful to summarize our data.
So here, the statement is the same as we've seen before.
But what we're looking at doing now is adding our end block.
There you go, you can see it.
The one marked end here,
we're using a print statement where we can specify that we're
printing the total number of users of which we're using then our
account variable to show those that use bash.
Now again,
this is just an awful lot of characters on a slides going be much easier to
move out now to our command line to see our end blocks,
three data, we can print the total number of users from our N R variable,
the number of rows, but also where we've implemented our count variable,
we can show those matching I criteria where the line ends in bash.
So come on, let's hunt out that command line.
So this is where we left off where we've got our begin and main
block and we've got our header information,
but included in that our header information,
we've got our count variable when we are row key.
And we can go now back inside of our single quotes
representing our arc statement.
We can extend this and add in our end block and then
our brace bracket for our end block.
And generally, we can put our summary information in here.
So within our end block,
we can go through and put a print statement and maybe we could
just have one line of data that we're printing.
We have space end our quotes, reference our number of rows,
variable and then open up our quotes again and space users.
So we have so many users,
we can close off our quotes and check this is working
and we can see that we have 32 users.
Although only two, our printing at the moment,
we can app arrow key and summarize this two back inside of my double quotes.
After the s of users,
we can put a comma of which space refer to our count variable,
space, open up our quotes again, space and use bash.
Now as I go through and hit the end tech key,
we can see we have 32 users of which two use bash.
So we're making use of the N R the total number of rows and our count variables,
those that meet our criteria.
Now, whilst it's getting quite good, of course,
we're now going to look at a very complex command line and it's great.
Whilst its in our command line history, we can up our key to make edit,
however,
we can make use of arc files if we need to go back to this at another
date and it's not going to be in our immediate history.
So arc files really simplify this whole element.
So let's come back and look at those in a few moments.