Question: 1. (40 points) Write a shell script that will print the names of the users in the system that use bash as their default shell.
1. (40 points) Write a shell script that will print the names of the users in the system that use bash as their default shell. The names should be displayed in sorted order. After the last name is printed, the system should print the sentence There are XX users that use bash. where XX is the number of users that use bash as their default shell.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
