1. Write a shell script named group report. This script will accept a list of group...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Picture. Question 25 Not yet answered Marked out of 2.0 P Flag question Ben and Lisa are best friends. Their relationship is based on equality, mutual respect and loyalty. They have a friendship of Se
-
5) On the graphs below show the difference between a change in price and a change in demand. Fully label graphs for full marks! (2+2 marks) Change in price Change in demand X 6) A change in the price...
-
: (i) What data structures are maintained by the page manager. (ii) What happens when a machine performs a read operation to a page. (iii) What happens when a machine performs a write operation to a...
-
The table lists the actual annual cost y to drive a midsize car 15,000 miles per year for selected years X. (a) Predict whether the correlation coefficient is positive, negative, or zero. (b) Find a...
-
A diverging lens with f = -36.5cm is placed 14.0 cm behind a converging lens with f = 20.0cm. Where will an object at infinity are focused?
-
Restco Beds Inc. produces two models of beds: Regular and Majestic. Budget and actual data were as follows: Market Data Expected total market sales of beds................................500,000 beds...
-
Assume that the United Kingdom has an interest rate of 8 percent versus an interest rate of 5 percent in the United States. a. Explain what the implications are for the future value of the British...
-
The two accompanying diagrams show supply and demand curves for two substitute commodities: tapes and compact discs (CDs). a. On the right-hand diagram, show what happens when rising raw material...
-
er reaches feet up the wal the nearest whole number as needed.) MIID
-
Calculate the molar volume of saturated liquid and the molar volume of saturated vapor by the Redlich/Kwong equation for one of the following and compare results with values found by suitable...
-
2. Please calculate the depletion expense and make the journal entry. You purchased land with an oil basin for $2,500,000. Your geologist estimates 130,000 barrels. You pulled out 35,000 barrels of...
-
You just started in a new position as a leader. The desk files you received when you started this job are full of documents going back a couple of years. In fact, you noticed last week that the file...
-
A Solid rock suspended by a spring scale, has a measured mass of 9 kg. When placed completely in water(density of 1000 kg m3 ) the scale read 3.3 kg. What is the density of the rock?
-
Consider a pressure versus volume graph, where the different curves represent different processes done on a gas. Starting at the origin to point 1, the pressure and volume are increased to 2736 Pa...
-
Use the writeln() method of the document object to display the user agent in a tag in the webpage. Hint: The userAgent property of the window navigator object contains the user agent. 1 Demo 2 4 k!...
-
There are two different types of organizational change discussed in your text. Please define and contrast the two types of organizational change. Then discuss two real life examples of organizational...
-
The Down and Out Co. just issued a dividend of $2.11 per share on its common stock. The company is expected to maintain a constant 5 percent growth rate in its dividends indefinitely. If the stock...
-
Keating & Partners is a law firm specializing in labour relations and employee-related work. It employs 25 professionals (5 partners and 20 managers) who work directly with its clients. The average...
-
Rewrite the enter region code of Fig. 2-22 using the pure read to reduce thrashing induced by the TSL instruction.
-
The Morris-Thompson protection scheme with n-bit random numbers (salt) was designed to make it difficult for an intruder to discover a large number of passwords by encrypting common strings in...
-
A professor shares files with his students by placing them in a publicly accessible directory on the Computer Science department's Linux system. One day he realizes that a file placed there the...
-
Lockwood Company has two production departments, Fabricating and Assembling. At a department managers' meeting, the controller uses flexible budget graphs to explain total budgeted costs. Separate...
-
Loeb's Company's organization chart includes the president; the vice president of production; three assembly plants Dallas, Atlanta, and Tucson; and two departments within each plant Machining and...
-
The Hack craft Division of Nunez Company reported the following data for the current year. Top management is unhappy with the investment center's return on investment (ROI). It asks the manager of...
Study smarter with the SolutionInn App