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.
1 Variable use is the same as before except we use the read command with the -e option to get the
values.
2 Create a new copy of the blueandwhite.sh script called colorinput.sh.
3 Modify the script to use an echo to the screen to request input for a background color and text color.
4 Color choices are: blue, yellow, white, red.
5 Use read -e to get the input.
-6-
6 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 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!