subject

Consider the following valid shell script:

#1 /bin/bash
sum= 0
TMP1-./TMP1
echo -e "81n7\n6" $TMP1

while read num
do

echo "TRACE: In Loop"
echo "TRACE: num: $num"
sum- expr $sum $num
echo "TRACE: sum: $sum"
echo -e "TRACE: End of Loop\n"
done < $TMP1

Which one of the following statements is correct: Group of answer choices

a. The contents of the file TMP1 will be read into the while loop.
b. This script will exit with an error, because no file named TMP1 will exist when the while loop runs.
c. The variable sum will contain the value 23 at the end of the script, just before it exits and is unloaded from memory.
d. The first line has no effect: whatever shell you run this script from will be the shell of execution, not the one indicated in the first line.
e. The backtick characters in the line with sum and expr can be replaced with double quote characters, like so; sum-"expr $sum+ Snum", and the numerical summation intended will still occur.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:50
Using the artofstat website, run a permutation test to see if there is a difference in the mean amount of time spent on emails per day between in state and out of state students. (make sure to generate 10,000 permutations.) in state students: 2 3 3 6 2 1 1 5 3 2.5 out of state students: 1 2 2 1 2 1 4 3 9 1 10 1 3 what is the p-value?
Answers: 3
question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
You know the right answer?
Consider the following valid shell script:

#1 /bin/bash
sum= 0
TMP1-./TMP1...
Questions
question
Mathematics, 21.06.2019 14:40
question
History, 21.06.2019 14:40
question
Mathematics, 21.06.2019 14:40
Questions on the website: 13722362