Question: Please do not copy paste from internet. And read the question carefully Write a Linux script that reads the user name from the script's calling

Please do not copy paste from internet. And read the question carefully
Please do not copy paste from internet. And read the question carefully

Write a Linux script that reads the user name from the script's calling parameter. Then select a full line for this user from the /etc/passwd file and save the result to a file called result.sh If there is no such user, the script should display the message: "no user and write nothing to the result.sh file

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!