Here is a sample output of your script. The $ is the shell prompt. The items in italics are not part of the sample outpu

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Here is a sample output of your script. The $ is the shell prompt. The items in italics are not part of the sample outpu

Post by answerhappygod »

Here Is A Sample Output Of Your Script The Is The Shell Prompt The Items In Italics Are Not Part Of The Sample Outpu 1
Here Is A Sample Output Of Your Script The Is The Shell Prompt The Items In Italics Are Not Part Of The Sample Outpu 1 (21.8 KiB) Viewed 73 times
Here is a sample output of your script. The $ is the shell prompt. The items in italics are not part of the sample output. They are hints indicating how your script should behave. $ ./setting.sh *** MENU *** 1. Add a Setting 2. Delete a Setting 3. View a Setting 4. View All Settings Quit Q - CHOICE: 1 (user input) Enter setting (format: ABCD=abcd): (user simply presses the Enter/Return key) New setting not entered Enter setting (format: ABCD-abcd): EDITOR (user input) Invalid setting (A valid setting needs to contain a "=" sign) Enter setting (format: ABCD=abcd): EDITOR= (user input) The variable name of the setting is: EDITOR The variable value of the setting is: Invalid setting. Page 2 of
The variable name of the setting is: EDITOR The variable value of the setting is: Invalid setting. (Hint: To retrieve a variable name before the "=" sign, research the expr command's ability in handling strings) Enter setting (format: ABCD=abcd): =vi (user input) The variable name of the setting is: The variable value of the setting is: vi Invalid setting. Enter setting (format: ABCD=abcd): 1EDITOR=vi (user input) The variable name of the setting is: 1EDITOR The variable e of the setting is: vi Invalid setting. The first character of a variable name cannot be a digit. Enter setting (format: ABCD=abcd): EDITOR=vi (user input) The variable name of the setting is: EDITOR The variable value of the setting is: vi New setting added. *** MENU *** 1. Add a Setting 2. Delete a Setting 3. View a Setting 4. View All Settings Q - Quit CHOICE: 1 (user input) Enter setting (format: ABCD=abcd): USER=jchen (user input) The variable name of the setting is: USER The variable value of the setting is: jchen Variable exists. Changing the values of existing variables is not allowed.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply