Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help to get the output of these two questions please. I need step by step solution with output please.(Unix) 22. Write a script named

Need help to get the output of these two questions please. I need step by step solution with output please.(Unix)

image text in transcribed

22. Write a script named ifthen that prompts the userwith and reads a string of textfrom the user. If the userenters a nonnllsring, the script displays You entered: followed by the string; otherwise it displays Where is your input?. Use an if...then...else control structure to implement the two-way branch in the script. Use the test builtin to determine if the userenters a null string. write a script named commandRun.sh. Use a case structure to create a me nu of 4 commands the usercan select from. Use echo to give a description of each of the commands fora, b, c, and d. For example: echo "b. Display current host name" Use read to assign a variable basedon the user's input on selecting command a.b., ord The following commands assigned to a-d will be: date hostname vmstat runlevel Use a case option if the user selects something otherthan a-d, it prompts the user "There is no selection: a variable. The underline will be whateverthe usertyped in as an input. This will require

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

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

Students also viewed these Databases questions

Question

6. What is process reengineering? Why is it relevant to training?

Answered: 1 week ago