Answered step by step
Verified Expert Solution
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)
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 requireStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started