Question: Line 116 syntax error: unexpected end of file. How do I solve this? Below is the end of the file where this would be occuring:

Line 116 syntax error: unexpected end of file. How do I solve this? Below is the end of the file where this would be occuring:

usage

exit 1

esac

shift

done

if [ "$interactive" = "1" ]; then

echo "interactive is on"

echo "output file = $filename"

# write_page > $filename

if [ "$interactive" = "1" ]; then

response=

echo -n "Enter name of output file [$filename] > "

read response

if [ -n "$response" ]; then

filename=$response

fi

if [ -f $filename ]; then

echo -n "Output file exists. Overwrite? (y/n) > "

read response

if [ "$response" != "y" ]; then

echo "Exiting program."

exit 1

fi

fi

fi

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!