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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!