Question: Write a bash script that: Prompts a user to enter his/her user's first and last names, reads user inputs into 2 variables, checks if both

 Write a bash script that: Prompts a user to enter his/her

Write a bash script that: Prompts a user to enter his/her user's first and last names, reads user inputs into 2 variables, checks if both of the variables are not empty (check if the user entered at least 2 strings), prints user's last and first names (note reversed order), and exit with failure (value 1) and appropriate message if the user did not enter two strings. Your script should be named according to the following convention where Your Name should be replaced by the first letter of your first name combined with your last name

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!