Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a shell script named group report. This script will accept a list of group names on the command line and produce a

 

1. Write a shell script named group report. This script will accept a list of group names on the command line and produce a group report detailing the group id and the number of group members identified in /etc/passwd for each group. The report should resemble the following: Group Report Group GID CSS 301 faculty 300 gp 304 student 302 Count 439 78 24 2624 You will notice that the report format is not ideal. This is typical of the results obtained using echo. You may like to use man echo to learn a little more control techniques for echo. It also seems like the cut command would be a useful tool for extracting the group id from the proper line of/etc/group for each group.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

binbash echo Group Report for groupname i... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

More Books

Students also viewed these Programming questions