Question: Getting User Input A script can get input from the user while it is running. 1 Variable use is the same as before except we
Getting User Input
A script can get input from the user while it is running.
Variable use is the same as before except we use the read command with the e option to get the
values.
Create a new copy of the blueandwhite.sh script called colorinput.sh
Modify the script to use an echo to the screen to request input for a background color and text color.
Color choices are: blue, yellow, white, red.
Use read e to get the input.
Update setterm and the last echo line to use the input values.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
