Question: Hello Working on a project, and a bit stuck at the moment, here is what I have to do: Build your script so it takes

Hello

Working on a project, and a bit stuck at the moment, here is what I have to do:

Build your script so it takes the supplied first name of a user and returns the indicated output. The script should retrieve information for the user the script is run against and an error message if no user is found. Users to test will be Bob, Henry, and Notaperson. Bob and Henry should return the correct information and Notaperson should return an error message of no such person found (as there is no Notaperson user). To run script input format: sh userlookup.sh bob sh userlookup.sh henry sh userlookup.sh notaperson

Expected output format (will differ based on the user and will display an error when a user is not found): bob:x:1001:1001:Ops:/home/bob:/bin/bash bob:x:1001: ops:x:1004:bob, franks

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!