Put the commands into a file that will:
get the accounts from /etc/passwd where the person's name starts with A-G. (Look at the full names and just the first letter of the first name in the field.)
cut the full names (let's say the full name is at the fifth colum)
sort on the second name (it may be a middle initial)
and put the results in stdout, with a total of the number of people at the bottom
You have to satisfy the requirements specific in the instruction - Provide answer with example.