Question: 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
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
Get step-by-step solutions from verified subject matter experts
