Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am needing to do this in bash. I understand the logic behind it but I'm not familiar with bash syntax. ouTube Maps e cun

I am needing to do this in

image text in transcribed

bash. I understand the logic behind it but I'm not familiar with bash syntax.

ouTube Maps e cun Problem Set 2 - Linux Fix t 0 0 file:///C:/Users/corde/Downloads/Problem%20et%202%20-%20Linux%20File%20Systems.pdf 3 of 4 lo - + Fit to page D Page view A Read aloud L Add notes For each of the following problems, submit the command as requested. la e Generate a bash script named -p2.sh (eg, mackey-ps2.sh) that prompts the user to enter a selection. It should continue to prompt the user to enter a selection until the user enters "exit". Based on the user's input, perform one of the following tasks: 1. calendar - the program should display a calendar 2. users - the program should display the users and logged into the system and it should say "The system has been up since: " and display the amount of time the system his been running 3. hello - prompt the user to enter a name and an email address and say "Hello, ! Your email address, has been saved." (eg. Hello, Andrew Mackey. Your email address, andrew.mackey@asdf.edu, has been saved.). 4. Anything other than the above commands or exit - tell the user that an invalid command has been entered and try again Execute your program and save a screenshot of the results for each command. Submit your script file to the course website. It must have your name and problem set number as a comment in the script ouTube Maps e cun Problem Set 2 - Linux Fix t 0 0 file:///C:/Users/corde/Downloads/Problem%20et%202%20-%20Linux%20File%20Systems.pdf 3 of 4 lo - + Fit to page D Page view A Read aloud L Add notes For each of the following problems, submit the command as requested. la e Generate a bash script named -p2.sh (eg, mackey-ps2.sh) that prompts the user to enter a selection. It should continue to prompt the user to enter a selection until the user enters "exit". Based on the user's input, perform one of the following tasks: 1. calendar - the program should display a calendar 2. users - the program should display the users and logged into the system and it should say "The system has been up since: " and display the amount of time the system his been running 3. hello - prompt the user to enter a name and an email address and say "Hello, ! Your email address, has been saved." (eg. Hello, Andrew Mackey. Your email address, andrew.mackey@asdf.edu, has been saved.). 4. Anything other than the above commands or exit - tell the user that an invalid command has been entered and try again Execute your program and save a screenshot of the results for each command. Submit your script file to the course website. It must have your name and problem set number as a comment in the script

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago