Question: PART 1: Explore scripting with some of the concepts from Chapter 8 Explore variables using the env and the set commands. Create a new variable
PART 1: Explore scripting with some of the concepts from Chapter 8
- Explore variables using the env and the set commands.
- Create a new variable named hrs_worked. Assign hrs_worked a value of 20.
- Create a new variable named hrly_rate. Assign hrly_rate a value of 38.
- Create another variable named pay and assign it the value of hrs_worked times hrly_rate.
- export all 3 variables.
- Set hrly_rate to readonly. Try to unset hrly_rate.
- Use the echo command to see the values of all 3 variables.
- TO HAND IN: Take a screen shot of these commands for PART 1.
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
