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 22:00
Match the steps of the process to julia's analysis. 1. analyze choices. current costs for making phone calls to foreign countries averages between five and ten cents a minute. 2. determine the goals. julia needs to reduce the cost of telecommunications without reducing her employees' ability to do their jobs. 3. gather data. the corporate computer network will be able to handle the increased traffic that will occur as a result of voip. 4. evaluate the decision. julia will have her it department set up voip in the smallest domestic office. 5. make the decision. julia will have employees document the benefits and problems that result from using the new technology.
Answers: 1
question
Computers and Technology, 22.06.2019 09:50
Assume that you have an sorted array of records. assume that the length of the array (n) is known. give two different methods to search for a specific value in this array. you can use english or pseudo-code for your algorithm. what is the time complexity for each algorithm and why?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
What is a society that has moved to the internet rather than relying on physical media called
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
You know the right answer?
Consider the following valid shell script:

#1 /bin/bash
sum= 0
TMP1-./TMP1...
Questions
question
Mathematics, 31.10.2020 21:20
question
English, 31.10.2020 21:20
question
English, 31.10.2020 21:20
question
Physics, 31.10.2020 21:20
question
Mathematics, 31.10.2020 21:20
question
Mathematics, 31.10.2020 21:20
question
Biology, 31.10.2020 21:20
Questions on the website: 13722360