WGU D411 SCRIPTING AND AUTOMATION CHAPTER 14
WGU D411 SCRIPTING AND AUTOMATION CHAPTER 14 Which of the following are valid ways to assign a variable a value in a bash script? (Select two.) - 1. variable1=Hello 2. declare -i num1=4 You have created the following Bash script: #!/bin/bashdeclare -i num1declare -i num2declare -i totalnum1=10num2=2total=num1-num2echo $totalexit 0 What will be displayed on the screen after running the script? - 8 Which of the following commands in a Bash script will display "Farewell, Jason" on the screen? - variable2=Farewell echo $variable2 ", Jason" Which of the following commands do you need to enter to end a Bash shell script?
Document information
- Uploaded on
- June 17, 2023
- Number of pages
- 6
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Unknown