Question: The following script file will cause an error when executed. # ! / bin / bash date newvar = 1 0 0 echo $newvar echo

The following script file will cause an error when executed.
#!/bin/bash
date
newvar =100
echo $newvar
echo 'all done'
What is the problem?
Group of answer choices
In the echo line, single quotes are not allowed.
There should be no spaces around the equal sign
The date command cannot be used without any arguments.
Line 2 is blank, and blank lines are not allowed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!